/* Modern Design System - Internship Management System */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Vibrant & Professional */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #6fd3ff 0%, #3e64ff 100%);
    --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --warning-gradient: linear-gradient(135deg, #fddb92 0%, #d1fdff 100%);
    --sidebar-bg: #2a2d3e;
    --sidebar-active: rgba(255, 255, 255, 0.1);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-radius: 16px;

    /* Text Colors */
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-light: #f7fafc;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f7f9fc;
    color: var(--text-primary);
    min-height: 100vh;
}

/* Background Animation */
.bg-animated {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    min-height: 100vh;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--glass-radius);
    border: var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--text-primary);
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    background: var(--primary-gradient);
    filter: brightness(110%);
}

/* Form Inputs */
.form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 10px 15px;
    transition: all 0.3s;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.2);
    border-color: #764ba2;
}

/* Sidebar */
.sidebar {
    background: var(--sidebar-bg);
    min-height: 100vh;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    margin: 5px 15px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: var(--sidebar-active);
    color: #fff;
    transform: translateX(5px);
}

.sidebar .nav-link i {
    margin-right: 10px;
}

.sidebar-brand {
    padding: 20px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

/* Tables */
.table-glass {
    background: white;
    border-radius: var(--glass-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.table-glass thead {
    background: #f8fafc;
}

.table-glass th {
    font-weight: 600;
    color: var(--text-secondary);
    border: none;
    padding: 15px;
}

.table-glass td {
    border-bottom: 1px solid #edf2f7;
    padding: 15px;
    vertical-align: middle;
}

/* Badges */
.badge {
    padding: 6px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-warning {
    background: var(--warning-gradient);
    color: #8a6d3b;
}

.badge-success {
    background: var(--success-gradient);
    color: #155724;
}

.badge-primary {
    background: var(--secondary-gradient);
    color: white;
}

.badge-danger {
    background: var(--accent-gradient);
    color: white;
}

/* Dashboard Cards */
.stat-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: -1;
}

/* Responsive Sidebar */
@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 260px;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        background: var(--sidebar-bg);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    /* Overlay when sidebar is open */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.show {
        display: block;
        opacity: 1;
    }

    /* Mobile Toggle Button */
    .mobile-toggle-btn {
        display: inline-block !important;
        margin-right: 15px;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-primary);
    }

    /* Adjust main content padding */
    .col-md-9.col-lg-10 {
        padding-top: 20px;
    }

    /* Ensure main content takes full width */
    .col-md-9.col-lg-10 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Hide toggle button on desktop */
.mobile-toggle-btn {
    display: none;
}