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

:root {
    --primary: #4F46E5; /* Indigo 600 */
    --primary-hover: #4338CA; /* Indigo 700 */
    --secondary: #10B981; /* Emerald 500 */
    --bg-color: #F3F4F6; /* Gray 100 */
    --surface: #FFFFFF;
    --text-main: #111827; /* Gray 900 */
    --text-muted: #6B7280; /* Gray 500 */
    --border-color: #E5E7EB; /* Gray 200 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --transition: all 0.2s ease-in-out;
}

body {
    font-family: 'Inter', sans-serif !important;
    background-color: var(--bg-color) !important;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1600px !important;
}

/* Modern Card / Panel */
.modern-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.modern-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modern-card-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: none;
    background: transparent;
    text-align: center;
}

.modern-card-body {
    padding: 1.5rem 2rem 2rem 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.025em;
}

.text-muted-modern {
    color: var(--text-muted) !important;
}

/* Modern Inputs */
.modern-input {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    color: var(--text-main) !important;
    background-color: #F9FAFB !important;
    transition: var(--transition) !important;
    box-shadow: none !important;
    width: 100%;
}

.modern-input:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    background-color: var(--surface) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2) !important;
}

/* Modern Buttons */
.modern-btn-primary {
    background-color: var(--primary) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    box-shadow: var(--shadow-sm) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem;
    width: 100%;
}

.modern-btn-primary:hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-md) !important;
}

.modern-btn-primary:active {
    transform: translateY(0) !important;
}

/* Layout Utilities */
.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Dashboard specific */
.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-top: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Navbar Modern */
.modern-navbar {
    background-color: var(--surface) !important;
    box-shadow: var(--shadow-sm) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.modern-navbar .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    transition: var(--transition) !important;
}

.modern-navbar .nav-link:hover {
    color: var(--primary) !important;
}

.modern-navbar .navbar-brand {
    color: var(--text-main) !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
}

/* Table Modernization */
.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

.modern-table th {
    background-color: #F9FAFB;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    white-space: nowrap;
}

.modern-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.85rem;
}

.modern-table tbody tr {
    transition: var(--transition);
}

.modern-table tbody tr:hover {
    background-color: #F9FAFB;
}

/* Badges */
.modern-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
}

.badge-success { background-color: #EEF2FF; color: #3730A3; }
.badge-info { background-color: #F3F4F6; color: #4B5563; }
.badge-warning { background-color: #EEF2FF; color: #3730A3; }
.badge-danger { background-color: #F3F4F6; color: #4B5563; }

/* Navbar Modern Styles */
.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: #6B7280 !important;
    transition: all 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
    background-color: rgba(79, 70, 229, 0.05);
    border-radius: 0.375rem;
}

.dropdown-menu {
    border-radius: 0.75rem;
    padding: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.dropdown-item:hover {
    background-color: rgba(79, 70, 229, 0.08);
    color: var(--primary);
}

/* Fix body to not have scroll from navbar */
body {
    padding-top: 0;
}

/* Login Container Background */
.login-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    position: relative;
    overflow: hidden;
}

.login-bg::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, rgba(255,255,255,0) 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.login-bg::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(255,255,255,0) 70%);
    bottom: -150px;
    left: -150px;
    border-radius: 50%;
}
