/* Account Container */
.kek-account-container {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Tabs */
.kek-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
}

.kek-tab-button {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.kek-tab-button.active {
    color: #2271b1;
    border-bottom: 2px solid #2271b1;
}

.kek-tab-content {
    display: none;
    padding: 30px;
}

.kek-tab-content.active {
    display: block;
}

/* Forms */
.kek-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kek-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.kek-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}

.kek-form-group label {
    font-weight: 600;
    color: #333;
}

.kek-form-group input[type="text"],
.kek-form-group input[type="email"],
.kek-form-group input[type="password"],
.kek-form-group input[type="tel"],
.kek-form-group select,
.kek-form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.kek-form-group input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.kek-form-group small {
    color: #666;
    font-size: 12px;
}

.kek-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.kek-checkbox input[type="checkbox"] {
    width: auto;
}

.kek-button {
    padding: 12px 24px;
    background: #404040bd;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.kek-button:hover {
    background: #404040bd;
}

.kek-button-small {
    padding: 6px 12px;
    background: #f0f0f1;
    color: #2271b1;
    border: 1px solid #2271b1;
    border-radius: 3px;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}

.kek-button-small:hover {
    background: #2271b1;
    color: #fff;
}

.kek-form-links {
    text-align: center;
    margin-top: 10px;
}

.kek-form-links a {
    color: #2271b1;
    text-decoration: none;
}

/* Dashboard */
.kek-dashboard-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin: 40px 0;
}

.kek-dashboard-sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.kek-user-info {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.kek-user-info h3 {
    margin: 0;
    color: #333;
}

.kek-user-info p {
    margin: 5px 0 0;
    color: #666;
    font-size: 14px;
}

.kek-dashboard-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.kek-dashboard-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.kek-dashboard-menu a:hover,
.kek-dashboard-menu a.active {
    background: #4040408a;
    color: #ffffff;
}

.kek-dashboard-menu a svg {
    width: 20px;
    height: 20px;
}

.kek-logout-link {
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    color: #dc3232 !important;
}

.kek-logout-link:hover {
    background: #fbe9e7 !important;
}

.kek-dashboard-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
}

/* Stats Cards */
.kek-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.kek-stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.kek-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kek-stat-icon.enrolled {
    background: #e3f2fd;
    color: #1976d2;
}

.kek-stat-icon.files {
    background: #e8f5e9;
    color: #388e3c;
}

.kek-stat-icon.profile.complete {
    background: #e8f5e9;
    color: #388e3c;
}

.kek-stat-icon.profile.incomplete {
    background: #ffebee;
    color: #c62828;
}

.kek-stat-content h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.kek-stat-content p {
    margin: 5px 0 0;
    color: #666;
}

/* Tables */
.kek-table {
    width: 100%;
    border-collapse: collapse;
}

.kek-table th {
    text-align: left;
    padding: 12px;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    color: #333;
}

.kek-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.kek-table tr:hover td {
    background: #f8f9fa;
}

/* Badges */
.kek-category-closed {
    opacity: 0.8;
}

.kek-closed-message {
    text-align: center;
    font-size: 14px;
}

.kek-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 400;
}

.kek-badge.open{
    background-color: #00a32a;
    color: #fff;
}

.kek-badge.closed{
    background-color: #dc3232;
    color: #fff;
}

.kek-badge.completed {
    background-color: #2271b1;
    color: #fff;
}

.kek-badge.pending {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffb74d;
}

.kek-badge.approved {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #81c784;
}

.kek-badge.rejected {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

/* Progress Bars */
.kek-progress-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kek-progress-item {
    width: 100%;
}

.kek-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.kek-unit-name {
    font-weight: 600;
    color: #333;
}

.kek-unit-hours {
    color: #666;
}

.kek-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.kek-progress-fill {
    height: 100%;
    background: #2271b1;
    transition: width 0.3s;
}

/* Seminar Cards */
.kek-seminars-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.kek-seminar-card {
    background: #fff;
    border: 2px solid #2271b1;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.kek-seminar-header h3 {
    margin: 0 0 15px;
    font-size: 24px;
    color: #2271b1;
}

.kek-seminar-description {
    margin-bottom: 15px;
    color: #333;
    line-height: 1.6;
}

/* Announcement Cards */
.kek-announcements-list {
    margin-top: 20px;
}

.kek-announcements-list h4 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.kek-announcement-card {
    background: #f8f9fa;
    border-left: 4px solid #00a32a;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.kek-announcement-header h5 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #00a32a;
}

.kek-announcement-description {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

/* Program Grid inside Announcement */
.kek-announcement-card .kek-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.kek-program-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
}

.kek-program-card.enrolled {
    background: #f0f6fc;
    border-color: #2271b1;
}

.kek-program-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.kek-program-header h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.kek-program-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.kek-program-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    padding: 5px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.kek-program-date {
    display: inline-block;
    margin-right: 10px;
}

.kek-program-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

.kek-program-status.open {
    background: #edfaef;
    color: #008a20;
    border: 1px solid #00a32a;
}

.kek-program-status.closed,
.kek-program-status.completed {
    background: #fbe9e7;
    color: #c62828;
    border: 1px solid #ef5350;
}

/* PDF Links */
.kek-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #dc3232;
    text-decoration: none;
    font-size: 12px;
    margin-right: 15px;
}

.kek-pdf-link:hover {
    text-decoration: underline;
}

.kek-seminar-pdf,
.kek-announcement-pdf,
.kek-program-pdf {
    margin: 10px 0;
}

/* No items messages */
.kek-no-announcements-message,
.kek-no-programs-message {
    color: #666;
    font-style: italic;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Programs Grid */
.kek-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.kek-program-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.kek-program-card h3 {
    margin: 0 0 10px;
    color: #333;
}

.kek-program-lessons {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.kek-program-lessons h4 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #666;
}

.kek-program-lessons ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kek-program-lessons li {
    margin-bottom: 5px;
}

.kek-lesson-link {
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
}

.kek-lesson-link:hover {
    text-decoration: underline;
}

/* KAYAS Form */
.kek-kayas-form-container {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.kek-document-field {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 15px;
}

.kek-document-description {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.kek-instruction-link {
    display: inline-block;
    margin: 10px 0;
    color: #2271b1;
    text-decoration: none;
}

.kek-file-upload-wrapper {
    margin-top: 10px;
}

.kek-radio-group {
    display: flex;
    gap: 20px;
}

.kek-radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
}

.kek-success-message {
    background: #edfaef;
    border: 1px solid #00a32a;
    color: #008a20;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.kek-error-message {
    background: #fbe9e7;
    border: 1px solid #ef5350;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.kek-program-card.rejected {
    border-left: 4px solid #dc3232;
    background: #fff9f9;
}

.kek-badge.rejected {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.kek-lesson-link.rejected-link {
    background: #fff3e0;
    border-color: #ffb74d;
    color: #e65100;
}

.kek-lesson-link.rejected-link:hover {
    background: #ffe0b2;
}

/* Rejected document styling */
.kek-document-field.rejected-doc {
    border-left: 4px solid #dc3232;
    background: #fff9f9;
}

/* Document status badges */
.kek-badge.approved {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #81c784;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    display: inline-block;
}

.kek-badge.rejected {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    display: inline-block;
}

.kek-badge.pending {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffb74d;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    display: inline-block;
}

/* Existing documents table */
.kek-existing-documents table {
    font-size: 13px;
}

.kek-existing-documents table th {
    font-weight: 600;
    color: #333;
}

.kek-existing-documents table td {
    color: #666;
}

.kek-existing-documents table tr:hover {
    background: #f5f5f5;
}

/*Others*/
    .kek-tab-link.active {
            background: #404040bd!important;
    color: #ffffff !important;
    border-bottom: 2px solid #404040bd !important;
    margin-bottom: -2px;
    }
    
    .kek-programs-container h2{
        font-size: 24px;
        text-align: center;
    }
    
    .kek-contact-container h2, .kek-files-container h2 {
    font-size: 30px;
}

/* CSS fallback - visual only, does NOT change submitted value */
.uppercase-input,
#reg_name, #reg_surname,
#wizard_name, #wizard_surname, #wizard_patronym, #wizard_mother_name, #wizard_national_id, #wizard_amka, #wizard_kayas, #wizard_unique_code, #wizard_phone, #wizard_phone_2, #wizard_address, #wizard_address_2, #wizard_area, #wizard_city, #wizard_postal, #wizard_country, #wizard_dypa_branch,
#name, #surname, #patronym, #mother_name, #national_id, #amka, #kayas, #unique_code, #phone, #phone_2, #address, #address_2, #area, #city, #postal_code, #country, #dypa_branch {
    text-transform: uppercase;
}

/* Loading Overlay Styles */
.kek-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(3px);
    animation: kek-fade-in 0.3s ease;
}

.kek-loading-spinner {
    margin-bottom: 20px;
    animation: kek-spin 1s linear infinite;
}

.kek-loading-spinner svg {
    width: 60px;
    height: 60px;
    color: #fff;
}

@keyframes kek-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes kek-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.kek-loading-message {
    text-align: center;
    color: #fff;
    max-width: 400px;
    padding: 20px;
}

.kek-loading-message h4 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #fff;
}

.kek-loading-message p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.5;
}

.kek-loading-warning {
    color: #ffb74d;
    font-size: 14px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .kek-dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .kek-form-row {
        grid-template-columns: 1fr;
    }
    
    .kek-stats-cards {
        grid-template-columns: 1fr;
    }
    
    .kek-programs-grid {
        grid-template-columns: 1fr;
    }
}