@font-face {
    font-family: yekanbakh-bold;
    src: url('/freamwork/fonts/YekanBakh-Heavy.ttf') format('truetype');
}

@font-face {
    font-family: minecraft;
    src: url('/freamwork/fonts/MinecraftTen-VGORe.ttf') format('truetype');
}

:root {
    /* Primary Colors */
    --primary: #FF85A2;
    --primary-light: #FFB8D0;
    --primary-soft: #FFE4EC;
    --primary-dark: #D65A78;

    /* Background Colors */
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --bg-card-hover: #1f2b4a;

    /* Accent Colors */
    --accent-gold: #FFD700;
    --accent-gold-dark: #B8860B;
    --accent-success: #00D26A;
    --accent-danger: #FF4757;
    --accent-info: #3742FA;

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0B0;
    --text-muted: #6B6B80;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-gold: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-card: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Layout */
    --sidebar-width: 280px;
    --header-height: 70px;
}

/* ========================================
   Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ========================================
   Panel Body
   ======================================== */
.panel-body {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* ========================================
   Sidebar Styles
   ======================================== */
.panel-sidebar {
    direction: rtl;
    position: fixed;
    right: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform var(--transition-normal);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logo {
    font-family: 'Minecraft', monospace;
    font-size: 40px;
    font-weight: 700;
    text-align: center;
}

.logo-mine {
    color: var(--text-primary);
}

.logo-star {
    color: #FFE066;
    text-shadow: 0 0 10px rgba(255, 224, 102, 0.5);
}

.sidebar-close {
    display: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* User Profile Section */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: rgba(102, 126, 234, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.user-avatar {
    position: relative;
    width: 55px;
    height: 55px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 3px solid var(--gradient-primary);
    box-shadow: var(--shadow-glow);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-secondary);
}

.user-status.online {
    background: var(--accent-success);
    box-shadow: 0 0 10px var(--accent-success);
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.user-level {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.user-level svg {
    animation: star-pulse 2s ease-in-out infinite;
}

@keyframes star-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    padding: 20px 15px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    margin-bottom: 8px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.nav-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--text-primary);
    transform: translateX(-5px);
}

.nav-item:hover::before {
    opacity: 1;
}

.nav-item.active {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.nav-item.active::before {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

.nav-text {
    flex: 1;
    font-size: larger;
    font-weight: bolder;
}

.nav-badge {
    background: var(--gradient-success);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
}

.nav-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-normal);
}

.nav-item:hover .nav-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-link,
.logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    width: 100%;
    background: transparent;
    font-size: 0.9rem;
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.logout-btn {
    margin-top: 10px;
    color: var(--accent-danger);
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.logout-btn:hover {
    background: rgba(255, 71, 87, 0.1);
    border-color: var(--accent-danger);
}

/* ========================================
   Main Content Area
   ======================================== */
.panel-main {
    flex: 1;
    margin-right: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-right var(--transition-normal);

}

/* Panel Header */
.panel-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: var(--header-height);
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.menu-toggle:hover {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search svg {
    position: absolute;
    right: 15px;
    color: var(--text-muted);
    pointer-events: none;
}

.header-search input {
    width: 300px;
    padding: 12px 20px 12px 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all var(--transition-normal);
}

.header-search input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Notification Button */
.notification-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.notification-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.notification-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    min-width: 20px;
    height: 20px;
    background: var(--accent-danger);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-secondary);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Coins Display */
.header-coins {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-lg);
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.header-coins:hover {
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.header-coins svg {
    animation: coin-spin 3s linear infinite;
}

@keyframes coin-spin {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

/* Header Profile */
.header-profile {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--gradient-primary);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.header-profile:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.header-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Panel Content */
.panel-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    font-family: minecraft, yekanbakh-bold !important;

}

.content-view {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Mobile Navigation
   ======================================== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 0 10px;
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.7rem;
    transition: all var(--transition-normal);
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: #667eea;
}

.mobile-nav-item.active svg {
    transform: scale(1.2);
}

.mobile-nav-center {
    background: var(--gradient-primary);
    color: #fff !important;
    border-radius: var(--radius-full);
    width: 60px;
    height: 60px;
    margin-top: -25px;
    box-shadow: var(--shadow-glow);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(5px);
}

/* ========================================
   Scrollbar Styles
   ======================================== */
.panel-sidebar::-webkit-scrollbar,
.panel-content::-webkit-scrollbar {
    width: 6px;
}

.panel-sidebar::-webkit-scrollbar-track,
.panel-content::-webkit-scrollbar-track {
    background: transparent;
}

.panel-sidebar::-webkit-scrollbar-thumb,
.panel-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.panel-sidebar::-webkit-scrollbar-thumb:hover,
.panel-content::-webkit-scrollbar-thumb:hover {
    background: #667eea;
}

/* ========================================
   Utility Classes
   ======================================== */
.panel-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
}

.panel-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: var(--shadow-glow);
}

.panel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.panel-btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
}

.panel-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.panel-btn-success {
    background: var(--gradient-success);
    color: #fff;
}

.panel-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(56, 239, 125, 0.4);
}

.panel-btn-gold {
    background: var(--gradient-gold);
    color: #fff;
}

.panel-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(245, 127, 17, 0.4);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .panel-sidebar {
        transform: translateX(100%);
    }

    .panel-sidebar.active {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .panel-main {
        margin-right: 0;
    }

    .mobile-nav {
        display: flex;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .header-search {
        display: none;
    }
}

@media (max-width: 768px) {
    .panel-header {
        padding: 0 15px;
        height: 60px;
    }

    .header-coins {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .panel-content {
        padding: 15px;
        padding-bottom: 80px;
    }

    .panel-card {
        padding: 20px;
    }
}

/* ========================================
   Dark Theme Enhancements
   ======================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0a0a14;
        --bg-secondary: #12121f;
        --bg-card: #1a1a2e;
        --bg-card-hover: #222240;
    }
}

/* ========================================
   Animation Classes
   ======================================== */
.slide-in-right {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg,
            var(--bg-card) 25%,
            var(--bg-card-hover) 50%,
            var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}