/* =============================================== */
/* ===== Account Portal - Modern Glass Design ===== */
/* =============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #0f1419 100%);
    background-attachment: fixed;
    color: #e2e8f0;
    min-height: 100vh;
    transition: background-color 0.3s ease;
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 20, 25, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 150, 255, 0.4);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 150, 255, 0.6);
}

/* ===== Header/Mobile Top Bar ===== */
.md\:hidden {
    background: rgba(23, 25, 37, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 0 0 24px 0;
}

/* ===== Sidebar Styling ===== */
aside {
    background: rgba(23, 25, 37, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px 0 0 24px !important;
}

aside .md\:flex {
    background: rgba(32, 36, 49, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) !important;
    border-radius: 20px !important;
    margin: 1rem !important;
}

/* ===== Card/Box Styling ===== */
.bg-club-card {
    background: rgba(32, 36, 49, 0.5) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.25),
                inset 1px 1px 0 0 rgba(255, 255, 255, 0.05) !important;
    border-radius: 24px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.bg-club-card:hover {
    background: rgba(32, 36, 49, 0.7) !important;
    border-color: rgba(100, 150, 255, 0.3) !important;
    box-shadow: 0 16px 64px 0 rgba(79, 70, 229, 0.15),
                inset 1px 1px 0 0 rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-4px) !important;
}

/* ===== Background Styling ===== */
.bg-club-bg {
    background: rgba(15, 20, 25, 0.7) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    transition: all 0.3s ease !important;
}

.bg-club-bg:focus,
.bg-club-bg:focus-visible {
    outline: none !important;
    border-color: rgba(79, 70, 229, 0.6) !important;
    background: rgba(15, 20, 25, 0.9) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15),
                inset 0 0 0 1px rgba(79, 70, 229, 0.3) !important;
}

/* ===== Input Styling ===== */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    background: rgba(15, 20, 25, 0.6) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
    border-radius: 16px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: rgba(79, 70, 229, 0.6) !important;
    background: rgba(15, 20, 25, 0.85) !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15),
                inset 0 0 0 1px rgba(79, 70, 229, 0.3) !important;
}

input::placeholder,
textarea::placeholder {
    color: rgba(148, 163, 184, 0.6) !important;
}

/* ===== Button Styling ===== */
button {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 16px !important;
}

.bg-club-accent {
    background: rgba(79, 70, 229, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.25),
                inset 1px 1px 0 0 rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(79, 70, 229, 0.3) !important;
    border-radius: 16px !important;
}

.bg-club-accent:hover {
    background: rgba(79, 70, 229, 1) !important;
    box-shadow: 0 12px 48px rgba(79, 70, 229, 0.35),
                inset 1px 1px 0 0 rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-3px) !important;
    border-color: rgba(79, 70, 229, 0.5) !important;
}

/* ===== Gradient Cards ===== */
.bg-gradient-to-br {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.25) 0%, rgba(32, 36, 49, 0.5) 100%) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(79, 70, 229, 0.25) !important;
    border-radius: 24px !important;
    box-shadow: 0 12px 48px rgba(79, 70, 229, 0.1),
                inset 1px 1px 0 0 rgba(255, 255, 255, 0.05) !important;
}

.bg-gradient-to-br:hover {
    border-color: rgba(79, 70, 229, 0.4) !important;
    box-shadow: 0 16px 64px rgba(79, 70, 229, 0.2),
                inset 1px 1px 0 0 rgba(255, 255, 255, 0.1) !important;
}

/* ===== Navigation Links ===== */
a.flex {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
}

a.flex:hover {
    background: rgba(32, 36, 49, 0.7) !important;
    border-color: rgba(100, 150, 255, 0.3) !important;
    transform: translateX(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

/* ===== Toast Notification ===== */
#toast {
    background: rgba(34, 197, 94, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    box-shadow: 0 12px 48px rgba(34, 197, 94, 0.3) !important;
    border-radius: 16px !important;
}

/* ===== Avatar Image ===== */
img[class*="w-24"],
img[class*="w-32"],
img[class*="rounded-full"] {
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4),
                inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
    border-radius: 50% !important;
}

img[class*="w-24"]:hover,
img[class*="w-32"]:hover {
    transform: scale(1.05);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Border & Shadow Effects ===== */
.border-gray-700,
.border-gray-800 {
    border-color: rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
}

.shadow-lg {
    box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.25) !important;
}

.shadow-2xl {
    box-shadow: 0 16px 64px 0 rgba(0, 0, 0, 0.3) !important;
}

/* ===== Text Colors ===== */
.text-club-muted {
    color: #94a3b8 !important;
}

.text-club-text {
    color: #e2e8f0 !important;
}

.text-gray-400 {
    color: #cbd5e1 !important;
}

/* ===== Icon Styling ===== */
i {
    transition: all 0.3s ease;
}

/* ===== Rounded Elements ===== */
.rounded-full,
.rounded-xl,
.rounded-2xl,
.rounded-lg {
    border-radius: var(--tw-rounded-radius, 16px) !important;
}

.rounded-full {
    border-radius: 50% !important;
}

.rounded-2xl {
    border-radius: 24px !important;
}

.rounded-xl {
    border-radius: 16px !important;
}

.rounded-lg {
    border-radius: 12px !important;
}

/* ===== Hover Effects ===== */
.hover\:bg-gray-800:hover {
    background: rgba(32, 36, 49, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
}

.hover\:bg-white\/10:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
}

.hover\:text-white:hover {
    color: #ffffff !important;
}

/* ===== Focus States ===== */
:focus-visible {
    outline: 2px solid rgba(79, 70, 229, 0.6) !important;
    outline-offset: 3px !important;
}

/* ===== Sticky Header ===== */
.sticky.top-0 {
    background: rgba(23, 25, 37, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 0 24px 0 !important;
}

/* ===== Grid Layout ===== */
.grid {
    gap: 2rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    aside {
        border-radius: 24px 0 0 24px !important;
    }

    main {
        padding: 1rem !important;
    }

    .bg-club-card,
    .bg-gradient-to-br {
        border-radius: 20px !important;
    }
}

/* ===== RTL Support ===== */
body {
    direction: rtl;
    text-align: right;
}

input[type="email"],
input[type="text"],
input[type="password"] {
    text-align: right !important;
}

.dir-ltr {
    direction: ltr !important;
    text-align: left !important;
}

/* ===== Status Indicator ===== */
.absolute.bottom-0.right-0 {
    background: #22c55e !important;
    box-shadow: 0 0 0 4px rgba(32, 36, 49, 0.8),
                0 0 16px rgba(34, 197, 94, 0.4) !important;
    border-radius: 50% !important;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(32, 36, 49, 0.8),
                    0 0 16px rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(32, 36, 49, 0.8),
                    0 0 24px rgba(34, 197, 94, 0.6);
    }
}

/* ===== Print Styles ===== */
@media print {
    body {
        background: white;
    }
    
    .print\:hidden {
        display: none !important;
    }
}
