/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    color: #444;
    font-size: 14px;
    /* Reduced base font size */
}

h1,
h2,
h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Layout */
.container {
    width: 90%;
    /* Reduced width for more compact look */
    max-width: 900px;
    /* Coupled spacing */
    margin: 15px auto;
    background: #fff;
    /* User preferred background color from recent edit preserved/overwritten if needed, but keeping style logical */
    background-color: transparent;
    /* background-color: #4184b4; */
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

/* Menu Moderno Horizontal */
nav {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .container {
    /* background: transparent; */
    box-shadow: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    position: relative;
    margin: 0;
}

nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 18px 25px;
    display: block;
    font-weight: 500;
    font-size: 15px;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Submenu */
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #34495e;
    min-width: 240px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 5px 5px;
    flex-direction: column;
}

nav ul li ul li {
    width: 100%;
}

nav ul li ul li a {
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav ul li ul li a:hover {
    background-color: #2c3e50;
    padding-left: 25px;
    /* Efecto de desplazamiento */
}

nav ul li:hover>ul {
    display: flex;
}

/* Right aligned items */
nav .pull-right {
    margin-left: auto;
}

/* Buttons */
.btn,
button,
input[type="submit"] {
    background-color: #3498db;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-warning {
    background-color: #f39c12;
}

.btn-warning:hover {
    background-color: #d68910;
}

/* Forms */
input,
select,
textarea {
    width: 100%;
    padding: 8px;
    margin: 4px 0 12px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 13px;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #3498db;
    /* background-color: #ADDDFF; */
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.2);
}

label {
    font-weight: 600;
    color: #555;
    margin-bottom: 3px;
    display: block;
    font-size: 13px;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

th,
td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #2c3e50;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

tr:hover {
    background-color: #f9f9f9;
}

/* Status Badges */
.status-active {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.status-inactive {
    background-color: #f2dede;
    color: #a94442;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

/* Images */
img {
    max-width: 100%;
    border-radius: 4px;
}