/* Font Face Declarations */
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #39517b 0%, #7c9bb2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.4s ease;
}

.container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 600px;
    transition: all 0.4s ease;
}

/* Theme Toggle Switch */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toggle-container {
    display: flex;
    align-items: center;
    background: white;
    padding: 8px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.toggle-input {
    display: none;
}

.toggle-label {
    position: relative;
    width: 60px;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    padding: 2px;
}

.toggle-input:checked + .toggle-label {
    background: #39517b;
}

.toggle-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.toggle-icon {
    font-size: 14px;
    transition: all 0.4s ease;
    opacity: 0.7;
}

.toggle-input:checked ~ .toggle-label .toggle-icon:first-child {
    opacity: 1;
}

.toggle-input:not(:checked) ~ .toggle-label .toggle-icon:last-child {
    opacity: 1;
}

.toggle-label::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.4s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-input:checked + .toggle-label::after {
    transform: translateX(30px);
}

.toggle-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.4s ease;
}

/* Login Section */
.login-section {
    flex: 1;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e6eaf1 100%);
    transition: all 0.4s ease;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h2 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.4s ease;
}

.logo p {
    color: #666;
    font-size: 14px;
    transition: all 0.4s ease;
}

.login-form {
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.4s ease;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.4s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #39517b;
    box-shadow: 0 0 0 3px rgba(57, 81, 123, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
    transition: all 0.4s ease;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-left: 8px;
    position: relative;
    transition: all 0.4s ease;
}

.checkbox-container input:checked + .checkmark {
    background: #39517b;
    border-color: #39517b;
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}



.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #39517b 0%, #7c9bb2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-bottom: 20px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(57, 81, 123, 0.2);
    background: #39517b;
}

/* News Section */
.news-section {
    flex: 1;
    padding: 40px;
    background: white;
    border-right: 1px solid #e1e5e9;
    transition: all 0.4s ease;
}

.news-header {
    margin-bottom: 30px;
}

.news-header h3 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.news-controls {
    display: flex;
    gap: 10px;
}

.news-btn {
    padding: 8px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 20px;
    background: white;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
}

.news-btn.active,
.news-btn:hover {
    background: #39517b;
    color: white;
    border-color: #39517b;
}

.news-content {
    max-height: 500px;
    overflow-y: auto;
}

.news-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.news-item:hover {
    background: #f8f9ff;
    transform: translateX(-5px);
}

.news-item.announcement {
    border-right: 4px solid #39517b;
}

.news-item.news {
    border-right: 4px solid #7c9bb2;
}

.news-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9ff;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.news-text h4 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.4s ease;
}

.news-text p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
    transition: all 0.4s ease;
}

.news-date {
    color: #999;
    font-size: 12px;
    transition: all 0.4s ease;
}

.org-logo {
    width: 200px;
    margin-bottom: 24px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Dark Theme Styles */
[data-theme="dark"] body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    font-family: 'Vazirmatn', sans-serif;
}

[data-theme="dark"] .container {
    background: #2d3748;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a5568;
}

[data-theme="dark"] .login-section {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

[data-theme="dark"] .logo h2 {
    color: #e2e8f0;
}

[data-theme="dark"] .logo p {
    color: #a0aec0;
}

[data-theme="dark"] .form-group label {
    color: #e2e8f0;
}

[data-theme="dark"] .form-group input {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .form-group input:focus {
    border-color: #63b3ed;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.1);
}

[data-theme="dark"] .form-group input::placeholder {
    color: #a0aec0;
}

[data-theme="dark"] .checkbox-container {
    color: #a0aec0;
}

[data-theme="dark"] .checkmark {
    border-color: #718096;
    background: #4a5568;
}

[data-theme="dark"] .checkbox-container input:checked + .checkmark {
    background: #63b3ed;
    border-color: #63b3ed;
}



[data-theme="dark"] .login-btn {
    background: linear-gradient(135deg, #63b3ed 0%, #4299e1 100%);
}

[data-theme="dark"] .login-btn:hover {
    box-shadow: 0 10px 20px rgba(99, 179, 237, 0.3);
}

[data-theme="dark"] .news-section {
    background: #2d3748;
    border-right-color: #4a5568;
}

[data-theme="dark"] .news-header h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .news-btn {
    background: #4a5568;
    border-color: #718096;
    color: #a0aec0;
}

[data-theme="dark"] .news-btn.active,
[data-theme="dark"] .news-btn:hover {
    background: #63b3ed;
    border-color: #63b3ed;
    color: white;
}

[data-theme="dark"] .news-item {
    background: #4a5568;
    border: 1px solid #718096;
}

[data-theme="dark"] .news-item:hover {
    background: #5a67d8;
    transform: translateX(-5px);
}

[data-theme="dark"] .news-item.announcement {
    border-right-color: #63b3ed;
}

[data-theme="dark"] .news-item.news {
    border-right-color: #9f7aea;
}

[data-theme="dark"] .news-icon {
    background: #5a67d8;
    color: white;
}

[data-theme="dark"] .news-text h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .news-text p {
    color: #a0aec0;
}

[data-theme="dark"] .news-date {
    color: #718096;
}

[data-theme="dark"] .toggle-container {
    background: #2d3748;
    border: 1px solid #4a5568;
}

[data-theme="dark"] .toggle-text {
    color: #e2e8f0;
}

[data-theme="dark"] .toggle-label {
    background: #4a5568;
}

[data-theme="dark"] .toggle-input:checked + .toggle-label {
    background: #63b3ed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        max-width: 100%;
    }
    
    .login-section,
    .news-section {
        padding: 30px 20px;
    }
    
    .news-section {
        border-right: none;
        border-top: 1px solid #e1e5e9;
    }
    
    .news-controls {
        flex-wrap: wrap;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .theme-toggle {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
    }
}

/* Scrollbar Styling */
.news-content::-webkit-scrollbar {
    width: 6px;
}

.news-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.news-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.news-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

[data-theme="dark"] .news-content::-webkit-scrollbar-track {
    background: #4a5568;
}

[data-theme="dark"] .news-content::-webkit-scrollbar-thumb {
    background: #718096;
}

[data-theme="dark"] .news-content::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Info Message Styles */
.info-message {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
    margin: 20px 0;
    transition: all 0.4s ease;
}

.info-message:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(57, 81, 123, 0.1);
    border-color: #39517b;
}

.info-icon {
    font-size: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4ff;
    border-radius: 50%;
    color: #39517b;
    flex-shrink: 0;
    border: 1px solid #e1e5e9;
}

.info-text h4 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.4s ease;
}

.info-text p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
    transition: all 0.4s ease;
}

.contact-info {
    color: #39517b !important;
    font-weight: 500;
    font-size: 15px !important;
    margin-bottom: 8px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Dark theme styles for info message */
[data-theme="dark"] .info-message {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .info-message:hover {
    border-color: #63b3ed;
    box-shadow: 0 5px 15px rgba(99, 179, 237, 0.2);
}

[data-theme="dark"] .info-icon {
    background: #2d3748;
    color: #63b3ed;
    border-color: #4a5568;
}

[data-theme="dark"] .info-text h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .info-text p {
    color: #a0aec0;
}

[data-theme="dark"] .contact-info {
    color: #63b3ed !important;
}

/* Responsive design for info message */
@media (max-width: 768px) {
    .info-message {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .info-icon {
        width: 24px;
        height: 24px;
        font-size: 14px;
        margin: 0 auto;
    }
    
    .info-text h4 {
        font-size: 15px;
    }
    
    .info-text p {
        font-size: 13px;
    }
}

 