/* assets/css/theme.css */
:root {
    --primary: #1d427e;
    --primary-dark: #122a50;
    --secondary: #108952;
    --accent: #ffcc00;
    --bg: #f4f7f6;
    --card-bg: #ffffff;
    --text: #333333;
    --sidebar: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --border: 1px solid #ddd;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Tipografía */
h1, h2, h3 { color: var(--primary); font-weight: 800; }
a { border-radius: 4px; transition: 0.3s; }

/* Botones */
.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-secondary { background: var(--secondary); color: white; }

/* Tablas */
.table-container { 
    background: white; 
    border-radius: var(--radius); 
    overflow: hidden; 
    box-shadow: var(--shadow); 
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modales */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.card:hover { transform: translateY(-5px); }

/* Badges */
.badge {
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Public Header & Navigation */
.public-header {
    background: var(--primary);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.public-brand img {
    height: 50px;
}

.public-brand h1 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

.public-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.public-nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
    border-radius: 4px; /* Ensure hover targets look nice */
}

.public-nav-link:not(.priority):hover {
    color: var(--accent);
}

.public-nav-link.priority {
    background: #ffc107;
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
}

.public-nav-link.priority:hover {
    opacity: 0.8;
}

/* Mobile Responsive Menu */
@media (max-width: 768px) {
    .public-header {
        flex-direction: column-reverse; /* Items above, Title below */
        padding: 1rem;
        gap: 1rem;
        position: relative; /* Changing from sticky might be better if menu is tall, but sticky is requested usually. Let's keep sticky but watch out for height. */
    }

    .public-brand {
        flex-direction: row; /* Keep logo and text side-by-side */
        justify-content: center;
        width: 100%;
        margin-top: 0.5rem;
    }

    .public-brand h1 {
        font-size: 1.2rem; /* Slightly smaller on mobile */
    }

    .public-nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center; /* Center items */
        gap: 0.8rem;
    }

    .public-nav-link {
        font-size: 0.85rem;
        padding: 6px 10px;
        background: rgba(255, 255, 255, 0.1); /* Subtle background for touch target */
        border-radius: 6px;
    }
    
    .public-nav-link.priority {
        background: #ffc107; /* Keep priority color */
        color: #000;
    }
}
