body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

/* Help Icon Styles */
.help-icon {
    display: inline-block;
    background: #6c757d;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-left: -5px;
    margin-top: -10px;
    transition: all 0.3s ease;
    user-select: none;
    vertical-align: super;
}

.help-icon:hover {
    background: #495057;
    transform: scale(1.1);
}

.upload-section {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    transition: border-color 0.3s;
}

.upload-section:hover {
    border-color: #007bff;
}

.upload-section.dragover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

input[type="file"] {
    margin: 20px 0;
    padding: 10px;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.results {
    margin-top: 30px;
}

.date-group {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 15px;
    padding: 15px;
}

.date-header {
    font-weight: bold;
    color: #495057;
    font-size: 18px;
    margin-bottom: 10px;
}

.hours-total {
    color: #007bff;
    font-size: 24px;
    font-weight: bold;
}

.error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
}

.summary {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.form-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.form-section h2 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #495057;
}

select, input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    box-sizing: border-box;
}

select:focus, input[type="text"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.code-generation {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
    display: none;
}

.code-output {
    width: 100%;
    min-height: 300px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #f8f9fa;
    resize: vertical;
}

.copy-button {
    margin-top: 10px;
    background-color: #28a745;
}

.copy-button:hover {
    background-color: #218838;
}

/* Version Badge Styles */
.version-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,123,255,0.3);
    transition: all 0.3s ease;
    user-select: none;
}

.version-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.4);
}

/* Changelog Panel Styles */
.changelog-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.changelog-panel.active {
    right: 0;
}

.changelog-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1002;
}

.changelog-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

.changelog-content {
    padding: 0;
}

.version-entry {
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
}

.version-entry:last-child {
    border-bottom: none;
}

.version-number {
    font-size: 18px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 5px;
}

.version-date {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.version-changes h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 15px 0 8px 0;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.version-changes ul {
    margin: 0 0 15px 0;
    padding-left: 20px;
}

.version-changes li {
    margin-bottom: 5px;
    color: #495057;
    line-height: 1.5;
}

/* Changelog Overlay */
.changelog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.changelog-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Help Panel Styles */
.help-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.help-panel.active {
    right: 0;
}

.help-header {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1002;
}

.help-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.help-content {
    padding: 0;
}

.help-section {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.help-section:last-child {
    border-bottom: none;
}

.help-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-section p {
    color: #495057;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.help-section ul, .help-section ol {
    color: #495057;
    line-height: 1.6;
    margin: 0;
    padding-left: 20px;
}

.help-section li {
    margin-bottom: 8px;
}

.help-section strong {
    color: #343a40;
}

/* Help Overlay */
.help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.help-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .changelog-panel {
        width: 100%;
        right: -100%;
    }
    
    .help-panel {
        width: 100%;
        right: -100%;
    }
    
    .version-badge {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .help-icon {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 12px;
        margin-left: -3px;
        margin-top: -8px;
    }
}