/* Dashboard Styles */
.dashboard-container {
    max-width: 1300px;
    margin: 80px auto 30px;
    padding: 0 20px;
    animation: fadeIn 0.5s ease-out;
}

.welcome-section {
    background: linear-gradient(to right, rgba(108, 99, 255, 0.1), rgba(0, 213, 160, 0.1));
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px var(--card-shadow);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

.welcome-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    top: -150px;
    right: -150px;
    border-radius: 50%;
    z-index: 0;
}

.welcome-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: var(--text);
}

.welcome-title span {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 16px var(--card-shadow);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px var(--card-shadow);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.1);
    z-index: 0;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    z-index: 1;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.dashboard-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 16px var(--card-shadow);
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.dashboard-section:nth-child(2) {
    animation-delay: 0.1s;
}

.dashboard-section:nth-child(3) {
    animation-delay: 0.2s;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    color: var(--text);
}

.section-title i {
    margin-right: 0.5rem;
    color: var(--primary);
}

/* Sidebar Styles */
.dashboard-sidebar {
    margin-bottom: 2rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 16px var(--card-shadow);
}

.sidebar-menu-item {
    border-bottom: 1px solid var(--card-border);
}

.sidebar-menu-item:last-child {
    border-bottom: none;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-menu-link:hover {
    background: rgba(108, 99, 255, 0.05);
    color: var(--primary);
}

.sidebar-menu-link.active {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.sidebar-menu-icon {
    width: 20px;
    margin-right: 0.75rem;
    text-align: center;
}

.upgrade-card {
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
}

.upgrade-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.upgrade-description {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-size: 0.9rem;
}

.btn-upgrade {
    background: white;
    color: var(--primary);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Filter & Search */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--secondary);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-container input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: var(--secondary);
    color: var(--text);
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

/* Files Table */
.files-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
}

.files-table th {
    padding: 1rem 0.75rem;
    background: var(--secondary);
    color: var(--text-secondary);
    font-weight: 500;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--card-border);
}

.files-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--card-border);
    color: var(--text);
    vertical-align: middle;
}

.files-table tr:last-child td {
    border-bottom: none;
}

.files-table tbody tr {
    transition: background-color 0.2s ease;
}

.files-table tbody tr:hover {
    background-color: rgba(108, 99, 255, 0.05);
}

.file-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.file-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.file-actions a, 
.file-actions button {
    color: var(--text-secondary);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0.9rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.file-actions a:hover, 
.file-actions button:hover {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
}

.file-actions a[title="Delete"]:hover, 
.file-actions button[title="Delete"]:hover,
.file-actions .delete-file:hover {
    background: rgba(255, 59, 48, 0.1);
    color: var(--danger);
}

/* No Files Message */
.no-files {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.no-files i {
    font-size: 3.5rem;
    color: var(--card-border);
    margin-bottom: 1rem;
}

.no-files h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.no-files p {
    margin-bottom: 1.5rem;
}

/* Footer */
.dashboard-footer {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 1rem 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .files-table th:nth-child(3),
    .files-table td:nth-child(3) {
        display: none;
    }
    
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
    }
    
    .sidebar-menu-item {
        border-bottom: none;
        border-right: 1px solid var(--card-border);
    }
    
    .sidebar-menu-link {
        padding: 0.75rem 1rem;
    }
    
    .dashboard-footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .files-table th:nth-child(4),
    .files-table td:nth-child(4) {
        display: none;
    }
    
    .file-name {
        max-width: 120px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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