.header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 180px;
    height: auto;
    margin-right: 20px;
}

.nav-menu {
    display: flex;
    gap: 15px;
}

.nav-btn {
    background-color: transparent;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-btn.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Dropdown styles - exactly as in index1.html */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2c3e50;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    margin-top: 2px;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown .nav-btn:after {
    content: ' ▼';
    font-size: 10px;
    vertical-align: middle;
}

/* Logout styling inside dropdown */
.logout-option {
    background-color: #e53e3e;
    color: white;
    border-radius: 0 0 4px 4px;
}

.logout-option:hover {
    background-color: #c53030 !important;
}

/* Mobile responsive adjustments - exactly as in index1.html */
@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .dropdown-content {
        position: static;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
    }
}

/* Additional styles for this page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Section Toggle Buttons */
.section-toggle-btn {
    padding: 10px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background-color: white;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 45px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-toggle-btn:hover {
    border-color: #2563eb;
    background-color: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.section-toggle-btn.selected {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.section-toggle-btn.selected:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.add-approver-btn:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

body {
    background-color: #f0f2f5;
    min-height: 100vh;
    padding: 0;
}

.main-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

h1, h2 {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 30px;
}

h1 {
    font-size: 28px;
    font-weight: 600;
    color: #2563eb;
}

.type-btn {
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 20px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    margin-bottom: 15px;
    width: 100%;
}

.type-btn:hover {
    background-color: #1d4ed8;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #f9fafb;
}

.submit-btn {
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #059669;
}

.back-btn {
    background-color: #6b7280;
    margin-top: 15px;
}

.back-btn:hover {
    background-color: #4b5563;
}

.success-message {
    background-color: #dcfce7;
    color: #166534;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    display: none;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.download-buttons button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Clean aesthetic improvements */
.document-type-selection {
    transition: opacity 0.3s ease-in-out;
}

.form-container {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles for hidden PDF generation elements */
#hiddenCoverPage, #hiddenLabel {
    position: absolute;
    left: -9999px;
    top: -9999px;
    visibility: hidden;
}

.preview-container {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    background-color: #f9fafb;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.preview-logo {
    max-width: 300px;
    height: auto;
}

.preview-title {
    text-align: center;
    margin: 30px 0;
}

.preview-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.preview-info-label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #6b7280;
}

.document-info {
    margin-top: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    font-size: 14px;
    color: #4b5563;
}

/* QR Code container styling */
.qrcode {
    display: inline-block;
}

.qrcode img {
    display: block;
}

/* Barcode canvas styling */
canvas#coverBarcode,
canvas#labelBarcode {
    display: block;
}

/* Uploaded PDF preview styling */
#uploadedPdfPreview h3 {
    margin-bottom: 10px;
    color: #333;
}

#uploadedPdfPreview p {
    margin-bottom: 15px;
    color: #666;
}

/* Finish Section Styling */
#finishSection {
    animation: slideInUp 0.5s ease-out;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

#finishSection::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

#finishBtn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#finishBtn:hover {
    background-color: #047857 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

#finishBtn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

/* Success indicators */
.pdf-ready-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #dcfce7;
    color: #166534;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
}

.pdf-ready-indicator::before {
    content: '✅';
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .card {
        padding: 20px;
    }
    
    .preview-info {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .download-buttons button {
        width: 100%;
    }

    #finishSection {
        padding: 15px;
    }

    #finishBtn {
        font-size: 16px;
        padding: 15px 30px;
    }
}