/* ==============================================================================
# MILKANALYZER - MODERN DESIGN SYSTEM & STYLE UTILITIES
# ============================================================================== */

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

:root {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --secondary-color: #495057;
    --dark-bg: #1e2530;
    --light-bg: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.25);
    --text-dark: #212529;
    --text-muted: #6c757d;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Premium Navigation Bar */
.navbar {
    background-color: var(--dark-bg) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: var(--transition-speed) ease;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
    font-size: 1.4rem;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-speed);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 10px;
    background-color: var(--primary-color);
    transition: var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 20px);
}

/* Premium Card Design with subtle hover zoom & shadows */
.card {
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

.card-img-top {
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
    height: 200px;
    object-fit: cover;
}

/* WhatsApp Floating Widget */
.whatsapp-float {
    position: fixed;
    width: 140px;
    height: 48px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero-section {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(30, 37, 48, 0.9) 0%, rgba(30, 37, 48, 0.7) 100%);
    padding: 80px 40px;
    border-radius: 16px;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Custom Table Styles */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

/* Admin Dashboard Cards */
.admin-card {
    border: none;
    border-radius: 16px;
    color: white;
    padding: 20px;
}

.admin-card.primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.admin-card.success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
}

.admin-card.warning {
    background: linear-gradient(135deg, #ffc107 0%, #d39e00 100%);
    color: #212529;
}

.admin-card.danger {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
}
