* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #475569;
    --primary-dark: #334155;
    --primary-light: #64748b;
    --secondary-color: #64748b;
    --secondary-dark: #475569;
    --accent-color: #94a3b8;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --bg-gradient: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    --bg-gradient-alt: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #64748b;
    --bg-white: #ffffff;
    --bg-gray-50: #f8fafc;
    --bg-gray-100: #f1f5f9;
    --bg-gray-200: #e2e8f0;
    --bg-gray-300: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

body {
    font-family: 'Segoe UI', 'Heebo', 'Assistant', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-gradient-alt);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    direction: rtl;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(71, 85, 105, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(100, 116, 139, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 20px 35px;
    color: var(--text-primary);
    margin-bottom: 40px;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.header-content {
    animation: fadeInDown 0.8s ease-out;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    letter-spacing: -0.01em;
}

.main-title .icon {
    font-size: 2.8rem;
    animation: none;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Main Content */
.main-content {
    margin-bottom: 40px;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 40px;
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
    animation: fadeInUp 0.6s ease-out;
    border: 1px solid var(--bg-gray-200);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.card-primary,
.card-secondary,
.card-accent {
    background: var(--bg-white);
    color: var(--text-primary);
}

.card-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.card-icon {
    font-size: 1.5rem;
    display: block;
    animation: none;
    flex-shrink: 0;
}

.card-text {
    flex: 1;
}

.card-title {
    font-size: 0.9rem;
    margin-bottom: 4px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    line-height: 1.3;
}

.card-description {
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Info Section */
.info-section {
    margin-top: 60px;
}

.info-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-md);
    animation: fadeIn 1s ease-out;
    border: 1px solid var(--bg-gray-200);
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-align: center;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.info-card > p {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.6;
    font-weight: 400;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card ul li {
    padding: 12px 18px;
    margin-bottom: 8px;
    background: var(--bg-gray-50);
    border-radius: var(--radius-md);
    border-right: 3px solid var(--primary-color);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
}

.info-card ul li:hover {
    transform: translateX(-4px);
    background: var(--bg-gray-100);
    box-shadow: var(--shadow-sm);
}

.info-card ul li::after {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 10px;
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 40px;
}

.logout-btn {
    margin-top: 12px;
    padding: 10px 24px;
    background: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid var(--bg-gray-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: inherit;
}

.logout-btn:hover {
    background: var(--bg-gray-50);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .header {
        padding: 30px 15px 25px;
    }
    
    .main-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 12px;
    }
    
    .main-title .icon {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .card {
        padding: 10px;
    }
    
    .card-content {
        gap: 8px;
        margin-bottom: 6px;
    }
    
    .card-title {
        font-size: 0.85rem;
    }
    
    .card-description {
        font-size: 0.7rem;
    }
    
    .card-icon {
        font-size: 1.3rem;
    }
    
    .card-arrow {
        font-size: 0.85rem;
    }
    
    .info-card {
        padding: 25px 20px;
    }
    
    .info-card h3 {
        font-size: 1.5rem;
    }
    
    .info-card > p {
        font-size: 1rem;
    }
    
    .info-card ul li {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
}

/* Stagger animation for cards */
.cards-grid .card:nth-child(1) {
    animation-delay: 0.1s;
}

.cards-grid .card:nth-child(2) {
    animation-delay: 0.2s;
}

