/* Estilos base */
.sistema-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background-size: cover;
    padding: 20px;
}

.login-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
    border-top: 5px solid var(--army-green);
}

.login-form h2 {
    color: var(--army-green);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--army-dark);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-group input:focus {
    border-color: var(--army-green);
    outline: none;
}

.btn-military {
    background-color: var(--army-green);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    width: 100%;
    transition: background 0.3s;
}

.btn-military:hover {
    background-color: var(--army-dark-green);
}

.form-footer {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--army-green);
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--army-dark);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--army-green);
    transition: transform 0.3s;
}

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

.dashboard-card h2 {
    color: var(--army-green);
    margin-bottom: 0.5rem;
}

.dashboard-card p {
    color: var(--army-dark);
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .login-form {
        padding: 1.5rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para tablas */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9em;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.admin-table th, .admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background-color: var(--army-green);
    color: white;
    font-weight: bold;
}

.admin-table tr:hover {
    background-color: #f5f5f5;
}

/* Badges */
.badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

/* Tabs */
.admin-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1em;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    border-bottom-color: var(--army-green);
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Formularios */
.admin-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.btn-submit {
    background-color: var(--army-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--army-dark-green);
}

.btn-cancel {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
    margin-left: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 1.5em;
    cursor: pointer;
}

/* Estilos específicos para el panel del socio */
.socio-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.profile-tabs, .prestamos-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.profile-form, .prestamo-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.profile-table th, .profile-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.profile-table th {
    background-color: var(--army-green);
    color: white;
}

.summary-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.summary-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.summary-item {
    flex: 1;
    min-width: 200px;
}

.summary-label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.summary-value {
    font-size: 1.2em;
    color: var(--army-green);
}

.no-data {
    text-align: center;
    padding: 20px;
    color: #666;
}

.export-options {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-export {
    background-color: var(--army-dark-green);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-export:hover {
    background-color: var(--army-green);
}

.password-toggle {
    cursor: pointer;
    color: #666;
    margin-top: 5px;
}

.form-nota {
    background-color: #f8f9fa;
    padding: 10px;
    border-left: 3px solid var(--army-gold);
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-tabs, .prestamos-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #ddd;
    }
    
    .summary-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .export-options {
        flex-direction: column;
    }
    
    .btn-export {
        justify-content: center;
    }
}

/* Estilos para el header del sistema */
.sistema-header {
    background: linear-gradient(135deg, var(--army-green), var(--army-dark-green));
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--army-gold);
}

.user-info {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 0 1rem;
    color: white;
}

.user-name {
    margin-right: 0.5rem;
    font-weight: 500;
}

.user-role {
    font-size: 0.8em;
    opacity: 0.8;
}

/* Estilos para el footer del sistema */
.sistema-footer {
    background: linear-gradient(135deg, var(--army-dark-green), var(--army-green));
    color: white;
    padding: 2rem 0 0;
    margin-top: 3rem;
    border-top: 3px solid var(--army-gold);
}

.sistema-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sistema-footer .footer-section {
    padding: 0 1rem;
    text-align: center;
}

.sistema-footer .footer-section h3 {
    color: var(--army-gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.sistema-footer .footer-logo {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.sistema-footer .copyright {
    text-align: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
}

/* Alertas */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .user-info {
        display: none;
    }
    
    .sistema-footer .footer-content {
        grid-template-columns: 1fr;
    }
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
/* === ESTILO MILITAR === */
body {
    background-color: #1b1f1b;
    color: #d0d4c3;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.dashboard-container {
    background-color: #2e2e2e;
    border: 2px solid #4b5320;
    border-radius: 10px;
    padding: 20px;
    margin: 20px;
}
h1, h2, h3 {
    color: #9db17c;
}
button, .btn {
    background-color: #556b2f;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
}
button:hover, .btn:hover {
    background-color: #6e8b3d;
}
/* === ESTILO MILITAR PRINCIPAL === */
:root {
    --army-green: #4b5320;
    --army-dark-green: #3a4626;
    --army-light-green: #6e8b3d;
    --army-gold: #b8860b;
    --army-dark: #1b1f1b;
    --army-light: #d0d4c3;
}

body {
    background-color: #1b1f1b;
    color: #d0d4c3;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: #9db17c;
    font-weight: 600;
}

a {
    color: #9db17c;
    text-decoration: none;
}

a:hover {
    color: #b8d194;
    text-decoration: underline;
}

/* Botones */
.military-btn {
    background-color: var(--army-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.military-btn:hover {
    background-color: var(--army-light-green);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.military-btn.small {
    padding: 6px 12px;
    font-size: 0.9em;
}

.military-btn.secondary {
    background-color: transparent;
    border: 1px solid var(--army-green);
    color: var(--army-light);
}

.military-btn.secondary:hover {
    background-color: var(--army-green);
}

/* Alertas */
.military-alert {
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.military-alert.success {
    background-color: rgba(43, 84, 43, 0.3);
    border-left-color: #4CAF50;
}

.military-alert.danger {
    background-color: rgba(139, 0, 0, 0.3);
    border-left-color: #f44336;
}

.military-alert.warning {
    background-color: rgba(139, 101, 8, 0.3);
    border-left-color: #ff9800;
}

.military-alert.info {
    background-color: rgba(8, 66, 139, 0.3);
    border-left-color: #2196F3;
}

/* Badges */
.military-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.military-badge.success {
    background-color: var(--army-dark-green);
    color: #9db17c;
}

.military-badge.warning {
    background-color: #4d4d2d;
    color: #dbd17c;
}

.military-badge.danger {
    background-color: #4d2d2d;
    color: #db7c7c;
}

/* Tablas */
.military-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.military-table th {
    background-color: var(--army-green);
    color: white;
    padding: 12px;
    text-align: left;
}

.military-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--army-dark-green);
}

.military-table tr:hover {
    background-color: rgba(75, 83, 32, 0.1);
}

/* Tarjetas */
.military-card {
    background-color: #2e2e2e;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--army-green);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Formularios */
.military-form .form-group {
    margin-bottom: 15px;
}

.military-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.military-form input,
.military-form select,
.military-form textarea {
    width: 100%;
    padding: 10px;
    background-color: #2e2e2e;
    border: 1px solid var(--army-dark-green);
    border-radius: 4px;
    color: var(--army-light);
}

.military-form input:focus,
.military-form select:focus,
.military-form textarea:focus {
    outline: none;
    border-color: var(--army-light-green);
    box-shadow: 0 0 0 2px rgba(110, 139, 61, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-stack {
        flex-direction: column !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
}

/* Iconos */
.fas, .far, .fab {
    margin-right: 5px;
}

/* Estilos para el cambio de contraseña */
.password-container {
    position: relative;
}

.password-container input {
    padding-right: 35px !important;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--army-green);
}

.toggle-password:hover {
    color: var(--army-light-green);
}

.password-strength {
    margin-top: 5px;
    height: 5px;
    background-color: #ddd;
    border-radius: 3px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    background-color: #4CAF50;
    transition: width 0.3s;
}

.password-hints {
    margin-top: 10px;
    font-size: 0.8em;
    color: #777;
}

.password-hints ul {
    padding-left: 20px;
    margin: 5px 0;
}

.password-hints li.valid {
    color: #4CAF50;
}