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

:root {
    --primary-yellow: #FFD700;
    /* Adjust to match image "Brasil" yellow */
    --hover-yellow: #ffc107;
    --sidebar-width: 250px;
    --bg-color: #f8f9fa;
    --text-color: #333;
    --text-muted: #666;
    --border-color: #e0e0e0;
    --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    --input-bg: #f5f5f5;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        overflow: hidden;
    }

    .sidebar:hover {
        width: 250px;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .sidebar-logo h2,
    .menu-section-title,
    .menu-item span.icon+text,
    .status-pill {
        display: none;
    }

    .sidebar:hover .sidebar-logo h2,
    .sidebar:hover .menu-section-title,
    .sidebar:hover .status-pill,
    .sidebar:hover .menu-item {
        display: flex;
    }

    .sidebar-logo {
        padding: 20px 10px;
    }

    .main-content {
        margin-left: 60px;
    }

    .top-header {
        padding: 15px 20px;
    }

    .content-body {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .form-group {
        width: 100%;
    }

    .card {
        padding: 20px;
    }
}


body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: #fff;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100%;
}

.sidebar-logo {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid transparent;
}

.sidebar-logo img {
    max-width: 100%;
    height: auto;
}

.sidebar-logo h2 {
    margin: 10px 0 0;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
}

.menu-section-title {
    padding: 10px 30px;
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
    letter-spacing: 1px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 30px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.menu-item:hover {
    background-color: #f9f9f9;
    color: #000;
}

.menu-item.active {
    background-color: var(--primary-yellow);
    color: #000;
    border-left-color: #000;
    /* Optional flair */
}

.menu-item i,
.menu-item span.icon {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
.top-header {
    background-color: #fff;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: right;
}

.user-info {
    font-size: 12px;
}

.user-name {
    font-weight: 700;
    display: block;
}

.user-role {
    color: var(--text-muted);
}

.user-avatar {
    width: 35px;
    height: 35px;
    background-color: #eee;
    border-radius: 5px;
    /* Square/Rounded as per image */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-family: monospace;
    /* Fallback for missing icon font inside avatar box if needed */
}

/* Content Area */
.content-body {
    padding: 30px 40px;
}

/* Cards */
.card {
    background-color: #fff;
    border-radius: 12px;
    /* Smooth rounded corners */
    box-shadow: var(--card-shadow);
    padding: 30px;
    border: 1px solid #eee;
    margin-bottom: 30px;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-yellow);
    padding-left: 15px;
}

.card-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Form Grid */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
}

.form-control {
    background-color: var(--input-bg);
    border: 1px solid transparent;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #ddd;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-control:read-only {
    background-color: #f0f2f5;
    /* Slightly darker */
    color: var(--text-muted);
}

/* Action Bar */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    align-items: center;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.1s;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: var(--primary-yellow);
    color: #000;
    box-shadow: 0 4px 6px rgba(255, 215, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #ddd;
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: #999;
    color: #000;
}

/* Status Indicators */
.status-pill {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-yellow {
    background-color: var(--primary-yellow);
    color: #000;
}

.status-green {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-red {
    background-color: #ffebee;
    color: #c62828;
}

.status-blue {
    background-color: #e3f2fd;
    color: #1565c0;
}

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

.modern-table th {
    text-align: left;
    padding: 15px;
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
}

.modern-table td {
    padding: 15px;
    border-bottom: 1px solid #f9f9f9;
    font-size: 13px;
    font-weight: 500;
}

.modern-table tr:hover td {
    background-color: #fafa0010;
    /* Very slight yellow tint maybe? */
}

/* Utilities */
.text-right {
    text-align: right;
}

.w-100 {
    width: 100%;
}

.mt-20 {
    margin-top: 20px;
}

/* Specific Helpers for Images */
.search-container {
    display: flex;
    width: 100%;
    gap: 15px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-input {
    width: 100%;
    padding-left: 40px;
    /* Space for icon */
}