/* Custom Stylesheet for SIMUTU SMKN 1 Tulungagung */

/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #047857 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    
    --sidebar-width: 260px;
    --sidebar-bg: #0f172a;
    --sidebar-text: #94a3b8;
    --sidebar-active-bg: rgba(255, 255, 255, 0.08);
    --sidebar-active-text: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    width: var(--sidebar-width);
    padding: 0;
    background-color: var(--sidebar-bg);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    transition: all 0.3s ease;
}

.sidebar-brand {
    padding: 1.5rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand span {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #475569;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    margin: 0;
}

.sidebar .nav-link {
    font-weight: 500;
    color: var(--sidebar-text);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.sidebar .nav-link i {
    width: 20px;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.03);
}

.sidebar .nav-link.active {
    color: var(--sidebar-active-text);
    background-color: var(--sidebar-active-bg);
    border-left-color: #6366f1;
}

.sidebar .nav-link.active i {
    color: #818cf8;
}

/* Main Layout */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 2rem;
    transition: all 0.3s ease;
}

/* Top Navbar */
.top-nav {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    margin: -2rem -2rem 2rem -2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Dashboard Cards */
.card-premium {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-gradient-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
}

.card-gradient-accent {
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
}

.card-gradient-success {
    background: var(--success-gradient);
    color: #ffffff;
    border: none;
}

.card-gradient-warning {
    background: var(--warning-gradient);
    color: #ffffff;
    border: none;
}

.card-gradient-danger {
    background: var(--danger-gradient);
    color: #ffffff;
    border: none;
}

/* Glassmorphism utility */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Table Design */
.table-premium {
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.table-premium tr {
    background-color: var(--bg-card);
}

.table-premium th {
    background-color: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border: none;
    padding: 1rem;
}

.table-premium td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.table-premium td:first-child {
    border-left: 1px solid var(--border-color);
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
}

.table-premium td:last-child {
    border-right: 1px solid var(--border-color);
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

/* Custom Badges */
.badge-custom {
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 50rem;
    letter-spacing: 0.3px;
}

/* Buttons */
.btn-premium {
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.btn-premium-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
}

.btn-premium-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #312e81 100%);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Forms */
.form-control-premium {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.form-control-premium:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Print Styles */
@media print {
    .sidebar, .top-nav, .no-print {
        display: none !important;
    }
    
    body > .d-flex {
        display: block !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .table-responsive {
        overflow: visible !important;
        display: block !important;
    }
    
    .card-premium {
        border: 1px solid #000000 !important;
        box-shadow: none !important;
        padding: 15px !important;
        background: #ffffff !important;
        border-radius: 0 !important;
    }
    
    /* Ensure all text is 100% visible and dark on print */
    body, h1, h2, h3, h4, h5, h6, p, td, th, span, div, small, strong, a {
        color: #000000 !important;
        text-shadow: none !important;
    }
}
