/* Base CSS - Estilos comunes para toda la aplicación */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #e9e9e9;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    font-weight: bold;
}

.main-container {
    background-color: white;
    padding: 10px;
    margin-top: 5px;
    width: 100%;
    max-width: 480px; /* Mobile first approach */
    box-sizing: border-box;
    flex-grow: 1;
}

/* Button Base Styles */
.btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
}

.btn-primary {
    background-color: #4285f4;
    color: white;
}

.btn-secondary {
    background-color: #e0e0e0;
    color: red;
}

.btn-cerrar {
    background-color: #1976d2;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
    transition: all 0.3s;
}

.btn-cerrar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(25, 118, 210, 0.4);
}

/* Modal Base Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    background: #1976d2;
    color: white;
    padding: 15px 20px;
    text-align: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
}

.modal-body {
    padding: 0;
}

.modal-footer {
    padding: 15px 20px;
    text-align: center;
    background-color: #f8f9fa;
}

.btn-modal-cerrar {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 30px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-modal-cerrar:hover {
    background: #5a6268;
}

/* Form Base Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

/* Utility Classes */
.loading, .error, .no-results {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error {
    color: #dc3545;
}

/* Tab Base Styles */
.tab-btn {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: #f8f9fa;
    color: #666;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9em;
    border-right: 1px solid #ddd;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn.active {
    background: #1976d2;
    color: white;
}

.tab-btn:hover:not(.active) {
    background: #e3f2fd;
}

/* Search Base Styles */
.search-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.search-section input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95em;
    height: 36px;
    box-sizing: border-box;
}

.search-section button {
    padding: 8px 16px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    height: 36px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.85em;
}

.search-section button:hover {
    background: #1565c0;
}