/* Dashboard Layout Styles */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--gray-900);
}

/* Sidebar Styles */
.sidebar {
    width: 320px;
    background-color: transparent;
    border-right: 1px solid var(--gray-700);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    
    /* Hide scrollbar for WebKit browsers (Chrome, Safari, Edge) */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer and Edge */
}

/* Hide scrollbar for WebKit browsers */
.sidebar::-webkit-scrollbar {
    display: none;
}

/* Brand Section */
.sidebar-brand {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--gray-700);
    text-align: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.brand-logo i {
    font-size: 2rem;
    color: var(--discord);
}

.brand-logo span {
    font-size: 1.75rem;
    font-weight: bold;
    color: white;
}

.brand-subtitle {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.8;
}

/* User Info Section */
.user-info {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-700);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    flex-shrink: 0;
}

.user-avatar img,
.user-avatar i {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--discord);
}

.user-avatar i {
    font-size: 3rem;
    color: var(--discord);
    border: none;
}

.user-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.logout-btn {
    color: var(--gray-400);
    transition: all 0.2s;
    padding: 0.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
}

.logout-btn:hover {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
    text-decoration: none;
}

/* Current Server Info */
.current-server {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.server-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.server-icon-wrapper {
    flex-shrink: 0;
}

.server-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--discord);
}

.server-icon.fallback {
    background: linear-gradient(135deg, var(--discord), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
}

.server-info {
    display: flex;
    flex-direction: column;
}

.server-name {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.server-permission {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 500;
}

.server-permission i {
    color: #10b981;
}

.change-server-btn {
    color: var(--gray-400);
    transition: all 0.2s;
    padding: 0.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
}

.change-server-btn:hover {
    color: var(--discord);
    background-color: rgba(88, 101, 242, 0.1);
    text-decoration: none;
}

/* Navigation Section */
.sidebar-nav-section {
    padding: 1.5rem 0;
    flex: 1;
}

.sidebar-nav {
    list-style: none;
    padding: 0 1.5rem;
    margin: 0;
}

.sidebar-nav-item {
    margin-bottom: 0.5rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-300);
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 0.5rem;
    border-left: none;
}

.sidebar-nav-link:hover {
    background-color: rgba(88, 101, 242, 0.1);
    color: white;
}

.sidebar-nav-link.active {
    background-color: rgba(88, 101, 242, 0.15);
    color: white;
}

.sidebar-nav-link i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

.sidebar-nav-group {
    margin-top: 2rem;
}

.sidebar-nav-group-title {
    padding: 0.5rem 1.5rem;
    color: var(--gray-400);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sidebar Footer */
.sidebar-footer {
    position: static;
    width: 100%;
    padding: 1.5rem;
    border-top: 1px solid var(--gray-700);
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    margin-top: auto;
}

.sidebar-footer p {
    color: var(--gray-400);
    font-size: 0.75rem;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

.sidebar-footer .brand {
    color: var(--discord);
    font-weight: 600;
}

/* Main Content Styles */
.main-content {
    margin-left: 320px;
    flex: 1;
    padding: 2rem;
    background-color: var(--gray-900);
    min-height: 100vh;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h1 {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header p {
    color: var(--gray-300);
    margin: 0;
    font-size: 1.125rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--discord) 0%, #4338ca 100%);
    border-radius: 0.75rem;
    padding: 2rem;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(88, 101, 242, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.1);
}

.stat-card.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.1);
}

.stat-card.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.1);
}

.stat-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-card-number {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-card-label {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.stat-card-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-icon i {
    font-size: 1.5rem;
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--gray-700);
        overflow-y: visible;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
}

/* Item Card Styles */
.item-card {
    background-color: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.2s;
}

.item-card:hover {
    background-color: var(--gray-750);
    transform: translateY(-2px);
}

.item-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.item-card-title {
    color: white;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.build-title-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.build-title-link:hover {
    color: #3b82f6;
    text-decoration: none;
}

.item-card-actions {
    display: flex;
    gap: 0.5rem;
}

.item-card-btn {
    border: none;
    border-radius: 0.25rem;
    padding: 0.5rem;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s;
}

.item-card-btn:hover {
    opacity: 0.8;
}

.item-card-btn.edit {
    background: var(--discord);
}

.item-card-btn.delete {
    background: #dc2626;
}

.item-card-description {
    color: var(--gray-300);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.item-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-card-badge {
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.item-card-meta {
    color: var(--gray-400);
    font-size: 0.75rem;
}

.view-build-btn {
    background-color: #0ea5e9;
}

.view-build-btn:hover {
    background-color: #0284c7;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-300);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.empty-state h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.7;
}

/* Action Button */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--discord) 0%, #4338ca 100%);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.action-btn.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.action-btn.green:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.action-btn.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.action-btn.purple:hover {
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.action-btn.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.action-btn.orange:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

