/* Base RTL Support */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* RTL Settings Panel */
html[dir="rtl"] .settings-panel {
    left: -400px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-right: none;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .settings-panel.active {
    left: 0;
}

html[dir="rtl"] .settings-toggle {
    left: 20px;
    right: auto;
}

html[dir="rtl"] .close-btn {
    left: 15px;
    right: auto;
}

html[dir="rtl"] .header-actions {
    flex-direction: row-reverse;
}

/* RTL Input fields */
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] input[type="url"] {
    direction: ltr;
    text-align: left;
}

/* RTL Modal positioning */
html[dir="rtl"] .login-modal,
html[dir="rtl"] .change-password-modal {
    direction: rtl;
    text-align: right;
}

/* RTL Social links */
html[dir="rtl"] .social-links {
    direction: ltr;
}

/* RTL Email form */
html[dir="rtl"] .email-form {
    direction: rtl;
}

html[dir="rtl"] .email-form input {
    text-align: right;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.container {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Animation */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.circle1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.circle2 {
    width: 120px;
    height: 120px;
    top: 70%;
    right: 20%;
    animation-delay: 2s;
}

.circle3 {
    width: 60px;
    height: 60px;
    top: 40%;
    left: 80%;
    animation-delay: 4s;
}

/* Persian Font Support */
body[style*="Vazirmatn"],
body[style*="Shabnam"],
body[style*="Sahel"],
body[style*="Samim"],
body[style*="Parastoo"],
body[style*="Gandom"],
body[style*="IRANSans"],
body[style*="Yekan"],
body[style*="Tanha"],
body[style*="Mikhak"] {
    direction: rtl;
    text-align: right;
}

/* Ensure Persian text displays correctly */
.persian-text {
    direction: rtl;
    text-align: right;
    unicode-bidi: bidi-override;
}

/* Override direction for settings panel when Persian font is used */
.settings-panel {
    direction: ltr !important;
    text-align: left !important;
}

.settings-panel * {
    direction: ltr !important;
    text-align: left !important;
}

/* Counter Style Variations */
/* Classic Style (Default) */
.countdown.classic,
.countdown {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.countdown.classic .time-box,
.countdown .time-box {
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Card Style */
.countdown.card {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.countdown.card .time-box {
    background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.countdown.card .time-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    background: linear-gradient(145deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
}

.countdown.card .time-box .number {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Digital Style */
.countdown.digital {
    background: linear-gradient(45deg, #0a0a0a, #1a1a1a);
    border: 3px solid #00ff41;
    border-radius: 15px;
    padding: 30px;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 30px rgba(0,255,65,0.4), inset 0 0 30px rgba(0,255,65,0.1);
    animation: digitalGlow 2s infinite alternate;
}

.countdown.digital .time-box {
    background: linear-gradient(45deg, #000000, #111111);
    border: 2px solid #00ff41;
    border-radius: 8px;
    color: #00ff41;
    font-family: 'Courier New', monospace;
    box-shadow: inset 0 0 15px rgba(0,255,65,0.2), 0 0 20px rgba(0,255,65,0.3);
    position: relative;
    overflow: hidden;
}

.countdown.digital .time-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,255,65,0.2), transparent);
    animation: digitalScan 3s infinite;
}

.countdown.digital .time-box .number {
    font-size: 4rem;
    text-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.countdown.digital .time-box .label {
    color: #00ff41;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 0 0 5px #00ff41;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes digitalGlow {
    0% { 
        box-shadow: 0 0 30px rgba(0,255,65,0.4), inset 0 0 30px rgba(0,255,65,0.1);
        border-color: #00ff41;
    }
    100% { 
        box-shadow: 0 0 50px rgba(0,255,65,0.6), inset 0 0 50px rgba(0,255,65,0.2);
        border-color: #00ff55;
    }
}

@keyframes digitalScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Vintage-Retro Style */
.countdown.vintage {
    background: linear-gradient(45deg, #8B4513, #A0522D);
    border: 4px solid #D2691E;
    border-radius: 20px;
    padding: 35px;
    font-family: 'Times New Roman', serif;
    box-shadow: 
        inset 0 0 20px rgba(139,69,19,0.4), 
        0 0 40px rgba(210,105,30,0.3),
        0 0 0 2px #654321;
    position: relative;
    overflow: hidden;
}

.countdown.vintage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139,69,19,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(160,82,45,0.3) 0%, transparent 50%);
    pointer-events: none;
}

.countdown.vintage .time-box {
    background: linear-gradient(145deg, #2F1B14, #1A0F0A);
    border: 3px solid #CD853F;
    border-radius: 15px;
    color: #F4A460;
    font-family: 'Times New Roman', serif;
    box-shadow: 
        inset 0 0 15px rgba(205,133,63,0.2), 
        0 0 20px rgba(244,164,96,0.4),
        inset 2px 2px 4px rgba(139,69,19,0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.countdown.vintage .time-box::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(244,164,96,0.3);
    border-radius: 10px;
    pointer-events: none;
}

.countdown.vintage .time-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(244,164,96,0.1), transparent);
    animation: vintageGlow 4s infinite;
}

.countdown.vintage .time-box:hover {
    transform: scale(1.05);
    box-shadow: 
        inset 0 0 20px rgba(205,133,63,0.3), 
        0 0 30px rgba(244,164,96,0.6),
        inset 2px 2px 4px rgba(139,69,19,0.4);
}

.countdown.vintage .time-box .number {
    font-size: 3.8rem;
    font-weight: bold;
    font-family: 'Times New Roman', serif;
    text-shadow: 
        0 0 10px rgba(244,164,96,0.8),
        2px 2px 4px rgba(139,69,19,0.8),
        0 0 20px rgba(244,164,96,0.4);
    color: #F4A460;
    position: relative;
    z-index: 2;
    letter-spacing: 2px;
}

.countdown.vintage .time-box .label {
    color: #DEB887;
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    font-style: italic;
    text-shadow: 
        1px 1px 2px rgba(139,69,19,0.8),
        0 0 8px rgba(222,184,135,0.6);
    text-transform: capitalize;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
}

@keyframes vintageGlow {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

@keyframes neonPulse {
    0% { box-shadow: 0 0 30px #00ffff, inset 0 0 30px rgba(0,255,255,0.1); }
    100% { box-shadow: 0 0 50px #00ffff, inset 0 0 50px rgba(0,255,255,0.2); }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Content */
.content {
    text-align: center;
    z-index: 1;
    color: white;
    max-width: 600px;
    padding: 2rem;
}

.title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: slideInDown 1s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.3s both;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out 0.6s both;
    direction: ltr;
    flex-direction: row;
}

.time-unit {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 100px;
    transition: transform 0.3s ease;
}

.time-unit:hover {
    transform: translateY(-5px);
}

.time-unit span {
    display: block;
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
}

.time-unit label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Notify Section */
.notify-section {
    margin-bottom: 3rem;
    animation: slideInUp 1s ease-out 0.9s both;
}

.notify-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.email-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.email-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.email-form input:focus {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.02);
}

.email-form button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.email-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(238, 90, 36, 0.4);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeIn 1s ease-out 1.2s both;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.1);
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .countdown {
        gap: 1rem;
    }
    
    .time-unit {
        min-width: 70px;
        padding: 1rem 0.5rem;
    }
    
    .time-unit span {
        font-size: 1.8rem;
    }
    
    .email-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .countdown {
        gap: 0.5rem;
    }
    
    .time-unit {
        min-width: 60px;
        padding: 0.8rem 0.3rem;
    }
    
    .time-unit span {
        font-size: 1.5rem;
    }
    
    .time-unit label {
        font-size: 0.7rem;
    }
}

/* Settings Panel Styles */
.settings-panel {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
}

.settings-panel.active {
    left: 0;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.1);
}

.settings-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 500;
}

.logout-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.settings-content {
    padding: 1.5rem;
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.setting-group input,
.setting-group select,
.setting-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.setting-group input:focus,
.setting-group select:focus,
.setting-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.setting-group textarea {
    resize: vertical;
    min-height: 60px;
}

.setting-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    transform: scale(1.2);
}

.setting-group input[type="range"] {
    margin-bottom: 0.5rem;
}

#speedValue {
    color: #667eea;
    font-weight: 600;
    margin-left: 0.5rem;
}

.reset-btn {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(238, 90, 36, 0.4);
}

.change-password-btn {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.change-password-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Image Upload Styles */
.image-upload-container {
    border: 2px dashed rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.image-upload-container:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.setting-group input[type="file"] {
    display: none;
}

.image-preview {
    cursor: pointer;
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
}

.image-preview:hover {
    background: rgba(102, 126, 234, 0.1);
}

.image-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
    object-fit: cover;
}

.image-preview span {
    color: #666;
    font-size: 0.9rem;
}

.remove-image-btn {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-image-btn:hover {
    background: #ff5252;
    transform: translateY(-1px);
}

/* Custom Font Styles */
.setting-group small {
    display: block;
    color: #666;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Background Image Theme */
.theme-custom-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.theme-custom-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

/* Settings Toggle Button */
.settings-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

/* Theme Variations */
.theme-blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.theme-green {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.theme-orange {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.theme-pink {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.theme-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* Mobile Responsive for Settings */
@media (max-width: 768px) {
    .settings-panel {
        width: 100%;
        left: -100%;
    }
    
    .settings-toggle {
        top: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .user-info {
        font-size: 0.8rem;
    }
}

/* Login Modal Styles */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-modal.active {
    opacity: 1;
    visibility: visible;
}

.login-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.login-modal.active .login-content {
    transform: scale(1);
}

.login-content h2 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.login-content p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.login-error {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 5px;
    display: none;
}

.login-error.show {
    display: block;
}

.default-credentials {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.default-credentials small {
    color: #667eea;
    font-size: 0.85rem;
}

/* Change Password Modal */
.change-password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.change-password-modal.active {
    opacity: 1;
    visibility: visible;
}

.change-password-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.change-password-modal.active .change-password-content {
    transform: scale(1);
}

.change-password-content h2 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.cancel-btn {
    flex: 1;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.1);
    color: #666;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

.save-btn {
    flex: 1;
    padding: 1rem;
    background: linear-gradient(45deg, #43e97b, #38f9d7);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(67, 233, 123, 0.3);
}

.password-error {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 5px;
    display: none;
}

.password-error.show {
    display: block;
}

/* Social Settings Styles */
.social-settings {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.social-input-group label {
    font-size: 0.8rem;
    color: #555;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.social-input-group input {
    padding: 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.social-input-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}
