/* public/css/style.css */
:root {
    --primary-color: #00897b;
    /* Teal / Verde Água System Identity */
    --primary-color-hover: #00796b;
    /* Darker teal for hover */
    /* Bootstrap Classic Blue or #1a73e8 for Google Blue */
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;

    --bg-color: #f0f2f5;
    /* Lighter, more modern gray */
    --sidebar-bg: #e0f2f1;
    /* Verde Água Claro / Teal 50 */
    --sidebar-text: #004d40;
    /* Texto Verde Escuro para contraste */
    --sidebar-width: 80px;
    /* Narrow width */

    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --card-border-radius: 16px;
    /* User requested "rounded" */
    --btn-border-radius: 50rem;
    /* Pill shape */
    --input-border-radius: 12px;
}

body {
    background-color: var(--bg-color);
    font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
    /* Prefer Inter if available */
    color: #495057;
    -webkit-font-smoothing: antialiased;
}

/* Card Styling */
.google-card {
    background: #fff;
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1.5rem;
    overflow: hidden;
    /* Ensure content obeys border radius */
}

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

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    /* Gradient Background */
    background: linear-gradient(180deg, #02aab0 0%, #00cdac 100%);
    border-right: none;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 0.5rem;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    text-align: center;
}

.sidebar .sidebar-brand-text {
    display: none;
}

.sidebar .nav-link {
    border-radius: 12px;
    margin-bottom: 0.5rem;
    padding: 0.8rem 0;
    color: rgba(255, 255, 255, 0.8);
    /* White icons */
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar .nav-link span {
    display: none;
}

.sidebar .nav-link i {
    font-size: 1.5rem;
    margin: 0 !important;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.1);
}

.sidebar .nav-link.active {
    background-color: #ffffff;
    color: #00cdac;
    /* Teal text for active item */
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sidebar hr {
    margin: 1.5rem 0;
    opacity: 0.1;
    border-color: var(--sidebar-text);
}

/* Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: 100vh;
}

/* Typography & Elements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #212529;
    letter-spacing: -0.5px;
}

/* Buttons */
.btn {
    border-radius: var(--btn-border-radius);
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
}

/* Forms */
.form-control,
.form-select {
    border-radius: var(--input-border-radius);
    border: 1px solid #dee2e6;
    padding: 0.7rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.02);
}

/* Badges */
.badge {
    border-radius: 6px;
    padding: 0.5em 0.8em;
    font-weight: 600;
    font-size: 0.75em;
    letter-spacing: 0.5px;
}

/* Login Page */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f2f5 0%, #e9ecef 100%);
}

.login-box {
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
}

/* Mobile Responsiveness */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Modern shadow */
    z-index: 1050;
    padding: 0 1.5rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Darker overlay */
    backdrop-filter: blur(2px);
    /* Modern blur effect */
    z-index: 1030;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1040;
        box-shadow: 10px 0 25px rgba(0, 0, 0, 0.1);
        width: 280px;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
        padding-top: 90px;
        /* Space for mobile header */
    }

    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;

    }
}

/* Gradient Cards (Google Colors) */
.google-card.card-gradient-blue {
    background: linear-gradient(135deg, #4285f4 0%, #3b78e7 100%) !important;
    /* Google Blue */
    color: white !important;
}

.google-card.card-gradient-green {
    background: linear-gradient(135deg, #0f9d58 0%, #0b8043 100%) !important;
    /* Google Green */
    color: white !important;
}

.google-card.card-gradient-red {
    background: linear-gradient(135deg, #db4437 0%, #c53929 100%) !important;
    /* Google Red */
    color: white !important;
}

.google-card.card-gradient-orange {
    background: linear-gradient(135deg, #f4b400 0%, #f0a000 100%) !important;
    /* Google Yellow */
    color: white !important;
}

.card-gradient-text-white {
    color: rgba(255, 255, 255, 0.9);
}

.card-gradient-icon {
    color: rgba(255, 255, 255, 0.8) !important;
}

@media (max-width: 575.98px) {
    .google-card {
        padding: 1.25rem !important;
        border-radius: 12px;
        /* Slightly smaller on mobile */
    }

    .main-content {
        padding: 1rem;
        padding-top: 85px;
    }

    h2 {
        font-size: 1.5rem;
    }
}