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

:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #4338ca;
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    --text-light: rgba(255, 255, 255, 0.95);
    --text-muted: rgba(255, 255, 255, 0.7);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --glass-bg: rgba(30, 30, 40, 0.35);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    --text-light: rgba(255, 255, 255, 0.95);
    --text-muted: rgba(255, 255, 255, 0.7);
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: url('background.jpg') center/cover no-repeat fixed;
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(79, 70, 229, 0.15) 0%, 
        rgba(99, 102, 241, 0.08) 50%, 
        rgba(67, 56, 202, 0.15) 100%);
    z-index: -1;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.datetime-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    min-width: 200px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--glass-shadow);
}

.date {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    direction: rtl;
    margin-bottom: 4px;
}

.time {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    direction: ltr;
}

.login-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
}

.btn-text {
    font-size: 13px;
}

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

.main-logo {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: var(--transition);
}

.main-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 20px rgba(79, 70, 229, 0.3));
}

.glass-box {
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.glass-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
}

.glass-btn.primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.small-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-icon {
    font-size: 18px;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.link-icon {
    font-size: 17px;
}


.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0 40px;
}


.search-section {
    width: 100%;
    max-width: 700px;
    margin-bottom: 40px;
}

.search-container {
    margin-bottom: 25px;
}

.search-box {
    padding: 10px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-sm);
    padding: 0 16px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.search-input-wrapper:focus-within {

    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.search-icon {
    color: #666;
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 0;
    font-size: 16px;
    color: #333;
    outline: none;
    font-family: inherit;
    width: 100%;
}

.search-input::placeholder {
    color: #888;
}

.clear-btn {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
    transition: color 0.2s;
    margin-right: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-btn:hover {
    color: #666;
}

.search-btn {
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    min-width: 110px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}


.quick-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}


.features-section {
    width: 100%;
    max-width: 1100px;
}

.features-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
}

.feature-card {
    display: flex;
    align-items: center;
    padding: 18px;
    text-decoration: none;
    color: var(--text-light);
    gap: 14px;
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.feature-info {
    flex: 1;
    min-width: 0;
}

.feature-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feature-info p {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer */
.footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.footer-text {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 300;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}


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

.datetime-display {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.1s;
}

.logo-above {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.2s;
	text-align: center;
    margin-bottom: -50px;
}

.search-box {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.quick-links .glass-btn {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.feature-card {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: calc(0.5s + var(--delay, 0s));
}


@media (max-width: 1024px) {
    .features-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 10px 0 20px;
        flex-direction: column;
        gap: 20px;
    }
    
    .header-left, .header-right {
        width: 100%;
        justify-content: center;
    }
    
    .datetime-display {
        min-width: 180px;
        padding: 8px 15px;
    }
    
    .date {
        font-size: 13px;
    }
    
    .time {
        font-size: 16px;
    }
    
    .login-btn .btn-text {
        display: none;
    }
    
    .login-btn {
        padding: 10px;
        min-width: 40px;
    }
    
    .main-logo {
        height: 80px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .features-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .feature-card {
        padding: 15px;
    }
    
    .quick-links {
        gap: 10px;
    }
    
    .link-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .features-row {
        grid-template-columns: 1fr;
    }
    
    .datetime-display {
        min-width: 160px;
    }
    
    .main-logo {
        height: 70px;
    }
    
    .date {
        font-size: 12px;
    }
    
    .time {
        font-size: 15px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}