@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: white;
}

.onepeka-blue {
    color: #0047AB;
}

.onepeka-bg-blue {
    background-color: #0047AB;
}

.typing-animation {
    border-right: 2px solid #0047AB;
    white-space: nowrap;
    overflow: hidden;
    font-size: 2rem;
    font-weight: bold;
    animation: typing 2s steps(8), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #0047AB
    }
}

.terms-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    padding: 1rem;
    background-color: #f9fafb;
}

.signature-pad {
    width: 100%;
    height: 200px;
    border: 2px solid #e5e7eb;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.signature-pad:hover {
    border-color: #7f1d1d;
    box-shadow: 0 4px 12px rgba(127, 29, 29, 0.1);
}

.form-section {
    display: none;
    padding: 2rem 0;
    margin-bottom: 1rem;
}

.form-section.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-bar {
    width: 100%;
    height: 12px;
    background-color: #e5e7eb;
    border-radius: 6px;
    margin: 20px 0;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-indicator {
    height: 12px;
    background: linear-gradient(90deg, #991b1b, #7f1d1d);
    border-radius: 6px;
    position: absolute;
    transition: width 0.5s ease;
    box-shadow: 0 2px 4px rgba(127, 29, 29, 0.3);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 16px;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #7f1d1d;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.btn {
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(145deg, #991b1b, #7f1d1d);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(145deg, #7f1d1d, #6b1d1d);
}

.file-upload-container {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.file-upload-container:hover {
    border-color: #7f1d1d;
    background: linear-gradient(145deg, #fef2f2, #ffffff);
    box-shadow: 0 4px 12px rgba(127, 29, 29, 0.1);
    transform: translateY(-2px);
}

.file-preview {
    max-width: 200px;
    max-height: 200px;
    margin: 10px auto;
    display: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1rem;
}

.section-number {
    background: linear-gradient(145deg, #991b1b, #7f1d1d);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.section-title {
    color: #7f1d1d;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.section-description {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.bottom-section {
    background: #f8f9fa;
    padding: 6rem 0;
    margin-top: 6rem;
}

.navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-btn {
    padding: 8px 24px;
    border: 1px solid #7f1d1d;
    border-radius: 4px;
    background: white;
    color: #7f1d1d;
    font-size: 14px;
    cursor: pointer;
}

.nav-btn:hover {
    background: #7f1d1d;
    color: white;
}

#next-btn {
    background: #7f1d1d;
    color: white;
}

#next-btn:hover {
    background: #6b1d1d;
}

select.form-control {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.hidden {
    display: none;
}

/* Download Section */
.download-section {
    background: #f8f9fa;
    min-height: 100vh;
    padding-top: 2rem;
}

.download-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.download-form-container {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

/* Documents Layout */
.documents-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.left-column {
    display: flex;
    flex-direction: column;
}

.right-column {
    display: flex;
    flex-direction: column;
}

/* Services Selection Container */
.services-selection-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.service-option {
    position: relative;
}

.service-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.service-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.service-label:hover {
    border-color: #7f1d1d;
    background-color: #fef2f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(127, 29, 29, 0.15);
}

.service-checkbox:checked + .service-label {
    border-color: #7f1d1d;
    background: linear-gradient(135deg, #7f1d1d, #991b1b);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 29, 29, 0.3);
}

.service-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    color: #7f1d1d;
    transition: color 0.3s ease;
}

.service-checkbox:checked + .service-label .service-icon {
    color: white;
}

.service-text {
    font-weight: 500;
    font-size: 0.95rem;
}

.service-checkbox:checked + .service-label .service-text {
    color: white;
    font-weight: 600;
}

/* CV Upload Large */
.cv-upload-large {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cv-upload-large:hover {
    border-color: #7f1d1d;
    background-color: #fef2f2;
}

.cv-preview-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Photo Upload Small */
.photo-upload-small {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    max-width: 200px;
}

.photo-upload-small:hover {
    border-color: #7f1d1d;
    background-color: #fef2f2;
}

.photo-preview-small {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    display: none;
}

/* Social & Signature Layout */
.social-signature-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.social-media-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.social-media-section input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 16px;
    background: white;
}

.social-media-section input[type="tel"]:focus {
    outline: none;
    border-color: #7f1d1d;
}

.signature-generator {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.signature-preview-container {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    background: white;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.generated-signature {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #1f2937;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
    transform: rotate(-2deg);
    display: inline-block;
    padding: 1rem;
    background: linear-gradient(45deg, transparent 40%, rgba(127, 29, 29, 0.1) 50%, transparent 60%);
    border-bottom: 2px solid #7f1d1d;
    position: relative;
}

.generated-signature::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: #7f1d1d;
    opacity: 0.5;
}

.generated-signature::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: #7f1d1d;
    opacity: 0.3;
}

.partner-info-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.partner-number-display {
    margin-bottom: 1.5rem;
}

.partner-number {
    background: #7f1d1d;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
}

.datetime-display {
    margin-bottom: 1.5rem;
}

.datetime-value {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-preview-container {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    background: white;
    min-height: 200px;
    margin-bottom: 1rem;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.preview-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-small {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 4px;
    cursor: pointer;
}

.btn-small:hover {
    background: #f3f4f6;
}

/* Completion Layout */
.completion-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.partner-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.partner-number-final {
    background: #7f1d1d;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}

.status-pending {
    background: #fbbf24;
    color: #92400e;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
}

.final-form-preview {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.final-preview-container {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    background: white;
    min-height: 400px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-body {
    padding: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

.close-btn:hover {
    color: #374151;
}

/* Login and Dashboard Styles */
.login-container {
    position: relative;
}

/* New Login Sidebar Styles */
.login-sidebar {
    position: fixed;
    top: 0;
    right: -380px; /* Anzia ikiwa imefichwa nje ya skrini */
    width: 380px;
    height: 100%;
    background: white;
    padding: 2.5rem 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
}

.login-sidebar.open {
    right: 0; /* Telezesha iingie ndani */
}

/* Overlay for when sidebar is open */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
}

#login-result {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 11px;
}

#account-dashboard {
    padding: 20px;
}

.dashboard-nav-item {
    display: block;
    padding: 10px;
    background: #e9ecef;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
}

.dashboard-nav-item:hover {
    background: #dee2e6;
}

.dashboard-nav-item.active {
    background: #7f1d1d;
    color: white;
}

#dashboard-form-preview {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    min-height: 300px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .section-number {
        margin-bottom: 0.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .documents-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .services-selection-container {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .service-label {
        padding: 0.75rem;
    }
    
    .service-icon {
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    .service-text {
        font-size: 0.9rem;
    }

    .cv-upload-large {
        min-height: 200px;
        padding: 2rem 1rem;
    }

    .photo-upload-small {
        max-width: 100%;
    }

    .social-signature-layout {
        grid-template-columns: 1fr;
    }

    .completion-layout {
        grid-template-columns: 1fr;
    }

    .bottom-section {
        padding: 3rem 0;
        margin-top: 3rem;
    }

    .flex.justify-between {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .flex.justify-between span {
        display: block;
        padding: 0.25rem 0;
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .nav-btn {
        width: 100%;
        padding: 12px 24px;
    }

    /* Dashboard responsive */
    #account-dashboard .container {
        padding: 10px;
    }

    #account-dashboard>.container>div {
        flex-direction: column;
    }

    #account-dashboard .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 280px;
    background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.dashboard-main {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    background: #f9fafb;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.partner-avatar {
    margin-bottom: 1rem;
}

.partner-basic-info h3 {
    margin: 0;
    font-size: 1.1rem;
}

.partner-basic-info p {
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-right: 3px solid #fbbf24;
}

.nav-item i {
    width: 20px;
    margin-right: 0.75rem;
    text-align: center;
}

.completion-badge {
    background: #fbbf24;
    color: #92400e;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    margin-left: auto;
    font-weight: 600;
}

.notification-badge {
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 50%;
    margin-left: auto;
    font-weight: 600;
    min-width: 1.25rem;
    text-align: center;
}

.nav-item.logout {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fca5a5;
}

.nav-item.logout:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* Dashboard Content Sections */
.dashboard-content-section {
    display: none;
}

.dashboard-content-section.active {
    display: block;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.section-header {
    margin-bottom: 2rem;
}

/* Stats Grid */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-info h3 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0;
    color: #1f2937;
}

.stat-info p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0.25rem 0 0 0;
}

/* Charts Row */
.dashboard-charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-container,
.calendar-container {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.mini-calendar {
    font-size: 0.875rem;
}

/* Create Post Form */
.approval-notice {
    background: #dbeafe;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.create-post-form {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Application Status */
.application-status-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.status-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.status-icon.pending {
    background: #fef3c7;
    color: #d97706;
}

.status-text.pending {
    color: #d97706;
    font-weight: 600;
}

.application-actions {
    display: flex;
    gap: 1rem;
}

/* Account Completion */
.completion-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.progress-bar-account {
    flex: 1;
    height: 0.5rem;
    background: #e5e7eb;
    border-radius: 0.25rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #10b981;
    transition: width 0.3s ease;
}

.progress-text {
    font-weight: 600;
    color: #10b981;
}

.account-requirements {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.requirement-item:last-child {
    border-bottom: none;
}

.requirement-item.completed {
    opacity: 0.7;
}

.btn-upload {
    margin-left: auto;
}

.form-control-small {
    margin-left: auto;
    width: 200px;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

/* Earnings Section */
.earnings-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.earnings-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.earnings-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #6b7280;
}

.earnings-amount {
    font-size: 1.875rem;
    font-weight: 700;
    color: #10b981;
    margin: 0;
}

.deduction-amount {
    font-size: 1.875rem;
    font-weight: 700;
    color: #ef4444;
    margin: 0;
}

.net-amount {
    font-size: 1.875rem;
    font-weight: 700;
    color: #3b82f6;
    margin: 0;
}

.earnings-history {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.transaction-list {
    space-y: 1rem;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info h4 {
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #1f2937;
}

.transaction-info p {
    margin: 0;
    font-size: 0.875rem;
}

.transaction-amount {
    font-weight: 700;
    color: #10b981;
}

/* Help Section */
.help-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.help-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease;
}

.help-card:hover {
    transform: translateY(-2px);
}

.help-card h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.help-card p {
    color: #6b7280;
    margin: 0;
}

/* Inbox Section */
.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-card h3 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.agent-selection {
    margin-top: 1rem;
}

.agent-selection p {
    margin-bottom: 0.5rem;
    color: #6b7280;
}

.agent-selection button {
    margin: 0.25rem;
}

.message-history {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.message-list {
    space-y: 1rem;
}

.message-item {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    border-left: 3px solid #3b82f6;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.message-time {
    font-size: 0.875rem;
    color: #6b7280;
}

.message-content {
    margin: 0;
    color: #374151;
}

/* Settings Section */
.settings-groups {
    space-y: 2rem;
}

.settings-group {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.settings-group-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.current-services {
    margin-bottom: 1.5rem;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.service-item:last-child {
    border-bottom: none;
}

.add-service {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.setting-item:last-child {
    border-bottom: none;
}

.toggle-switch {
    width: 3rem;
    height: 1.5rem;
}

/* Button Styles */
.btn-success {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-success:hover {
    background: #059669;
}

.btn-outline {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: #f3f4f6;
    color: #374151;
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .dashboard-main {
        margin-left: 0;
        padding: 1rem;
    }

    .dashboard-charts-row {
        grid-template-columns: 1fr;
    }

    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }

    .contact-options {
        grid-template-columns: 1fr;
    }

    .earnings-summary {
        grid-template-columns: 1fr;
    }

    .help-categories {
        grid-template-columns: 1fr;
    }
}

#account-creation-status {
    padding: 10px;
    border-radius: 4px;
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#account-creation-status i {
    margin-right: 8px;
}

/* New Styles for Corrections */

/* Approval Status Message */
.approval-status {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
}

.approval-status i {
    margin-right: 0.5rem;
    font-size: 1.125rem;
}

/* PDF Viewer Section */
.pdf-viewer-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#application-pdf-preview {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 2rem;
    background: #f9fafb;
    min-height: 24rem;
    transition: all 0.3s ease;
}

#application-pdf-preview:hover {
    border-color: #7f1d1d;
    background: #fef2f2;
}

/* Ambassador Application Section */
.ambassador-section {
    margin-top: 2rem;
}

.ambassador-application {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #8b5cf6;
    margin-top: 1rem;
}

.ambassador-application h4 {
    color: #7c3aed;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.ambassador-application h4 i {
    margin-right: 0.5rem;
    color: #fbbf24;
}

/* Enhanced Progress Bar */
.progress-bar-account {
    position: relative;
    background: #e5e7eb;
    border-radius: 9999px;
    height: 1rem;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    border-radius: 9999px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::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 shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* Enhanced Requirement Items */
.requirement-item {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.requirement-item.completed {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.requirement-item.pending {
    background: #fffbeb;
    border: 1px solid #fed7aa;
}

.requirement-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Enhanced Completion Badge */
.completion-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    margin-left: auto;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* Enhanced Stats Cards for Pending Status */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7f1d1d, transparent);
    animation: loading 3s infinite;
}

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

    100% {
        left: 100%;
    }
}

/* Create Post Disabled State */
.create-post-form.opacity-50 {
    opacity: 0.5;
    pointer-events: none;
}

.approval-notice {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.approval-notice i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}
/* Header improvements for logo and layout */
#main-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#main-header img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
}

#main-header .flex.items-center.space-x-6 {
    display: flex;
    align-items: center;
    gap: 2rem;
}

#main-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

/* District dropdown improvements */
#district {
    transition: all 0.3s ease;
}

#district:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

#district:not(:disabled) {
    background-color: white;
    color: #374151;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    #main-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    #main-header .flex.items-center.space-x-6 {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }
    
    #main-header h1 {
        font-size: 1.1rem;
    }
}
/* Loading state for district dropdown */
.district-loading {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: #3b82f6;
    margin-top: 0.25rem;
}

.district-loading i {
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Improved form validation messages */
.validation-message {
    display: flex;
    align-items: center;
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    animation: slideIn 0.3s ease-out;
}

.validation-message i {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

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

/* Success message styling */
.success-message {
    display: flex;
    align-items: center;
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    color: #16a34a;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.success-message i {
    margin-right: 0.75rem;
    font-size: 1.125rem;
}

/* Enhanced login dropdown */
#login-dropdown {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    backdrop-filter: blur(10px);
}

#login-dropdown input:focus {
    outline: none;
    border-color: #7f1d1d;
    box-shadow: 0 0 0 3px rgba(127, 29, 29, 0.1);
}

#login-dropdown button:hover {
    background-color: #6b1d1d;
    transform: translateY(-1px);
}