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

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9;
    color: #2f4f2f;
    min-height: 100vh;
}

.navbar {
    background-color: #2f4f2f;
    flex-shrink: 0;
}

.wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

#sidebar {
    width: 250px;
    background-color: #a3c293;
    display: flex;
    flex-direction: column;
    height: 100%;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.footer {
    margin-top: auto;
}

.navbar-brand {
    color: #ffffff !important;
    font-family: 'Playfair Display', serif;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
}

.navbar-nav .nav-link.active {
    color: #c1d9b0 !important;
    font-weight: 600;
}

.navbar-nav .nav-link:hover {
    color: #a3c293 !important;
}

.nav-user {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-salir {
    color: #a3c293;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

.nav-salir:hover {
    color: #c1d9b0;
}

#sidebar .sidebar-brand {
    color: #004116;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 1rem;
}

#sidebar .sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

#sidebar .sidebar-item {
    width: 100%;
}

#sidebar .sidebar-link {
    display: block;
    padding: 0.6rem 1rem;
    color: #0c3008;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    margin: 4px 8px;
}

#sidebar .sidebar-link:hover {
    background-color: #044e1a;
    color: #ffffff;
}

#sidebar .sidebar-link.active {
    background-color: #6daf67;
    color: #070707;
}

#sidebar .sidebar-user {
    color: #003012;
    font-size: 0.85rem;
    padding: 1rem;
    font-weight: 600;
}

#sidebar .sidebar-salir {
    margin-top: auto;
    color: #750000;
}

#sidebar .sidebar-salir:hover {
    background-color: #b95656;
    color: #000000;
}

.btn {
    background-color: #2f4f2f !important;
    color: #ffffff !important;
    border: none !important;
}

.btn:hover {
    background-color: #3e6b3e !important;
    color: #ffffff !important;
}

.btn.border {
    border: 1px solid #2f4f2f !important;
    color: #2f4f2f !important;
    background-color: transparent !important;
}

.btn.border:hover {
    background-color: #2f4f2f !important;
    color: #ffffff !important;
}

.card {
    border: 1px solid #2f4f2f;
    background-color: #ffffff;
}

.card .card-body {
    color: #2f4f2f;
}

.form-control {
    border: 1px solid #2f4f2f !important;
    border-radius: 0 !important;
}

.form-control:focus {
    border-color: #3e6b3e !important;
    box-shadow: 0 0 0 0.2rem rgba(46,79,46,0.25) !important;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #2f4f2f;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #2f4f2f;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="file"] {
    border: 1px solid #2f4f2f !important;
    padding: 5px;
}

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

table th, table td {
    border: 1px solid #2f4f2f;
    padding: 10px;
    text-align: left;
}

table th {
    background-color: #2f4f2f;
    color: #ffffff;
}

.img-tabla {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

footer, .footer {
    background-color: #2f4f2f !important;
    color: #ffffff !important;
    text-align: center;
    padding: 15px 0;
    width: 100%;
}

#login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    background-color: #a3c293;
    font-family: 'Inter', sans-serif;
}

.login-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.login-container h2 {
    font-family: 'Playfair Display', serif;
    color: #2f4f2f;
    margin-bottom: 25px;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background-color: #2f4f2f;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.login-container button:hover {
    background-color: #3e6b3e;
}

.error {
    color: #721c24;
    background-color: #f8d7da;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}