/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    overflow: hidden;
}

/* Login */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 600px;
}

.login-container h1 {
    color: #764ba2;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.login-container .subtitle {
    color: #666;
    margin-bottom: 30px;
}

.login-form {
    width: 100%;
    max-width: 400px;
}

/* Dashboard */
.dashboard {
    display: none;
    min-height: 600px;
}

.dashboard.active {
    display: block;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 30px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header h2 {
    font-size: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info .role-badge {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: white;
    color: #764ba2;
}

.main-content {
    display: flex;
    min-height: 500px;
}

.sidebar {
    width: 200px;
    background: #f8f9fa;
    padding: 20px 0;
    border-right: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.sidebar button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none;
    text-align: left;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.sidebar button:hover {
    background: #e9ecef;
}

.sidebar button.active {
    background: #764ba2;
    color: white;
}

.content {
    flex: 1;
    padding: 30px;
    overflow-x: auto;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card h4 {
    color: #764ba2;
    margin-bottom: 10px;
}

.card .amount {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.card .info {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #764ba2;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-danger {
    background: #dc3545;
}

.btn-success {
    background: #28a745;
}

.btn-sm {
    width: auto;
    padding: 5px 15px;
    font-size: 14px;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

table tr:hover {
    background: #f8f9fa;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #764ba2;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions .btn {
    flex: 1;
}

/* Alert Messages */
.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

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

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

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }

    .sidebar button {
        white-space: nowrap;
        padding: 10px 15px;
    }

    .header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        border-radius: 10px;
    }

    .login-container h1 {
        font-size: 2rem;
    }

    .content {
        padding: 15px;
    }
}
/* Agregar al final de assets/css/style.css */

/* Estilos para tarjetas bancarias */
.card-bank {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(118, 75, 162, 0.3);
    transition: transform 0.3s;
}

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

.card-bank .card-number-display {
    font-size: 24px;
    letter-spacing: 3px;
    background: rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
}

.card-bank .card-details {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

.card-bank .card-details-item {
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
}

.card-bank .card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* Select múltiple mejorado */
select[multiple] {
    padding: 8px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

select[multiple] option {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
}

select[multiple] option:hover {
    background: #667eea;
    color: white;
}

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

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}
/* assets/css/style.css - Agregar al final */

/* Estilos para tarjetas premium con ambas caras */
.card-premium {
    perspective: 1000px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.card-premium .card-inner {
    position: relative;
    width: 100%;
    height: 250px;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.card-premium .card-inner:hover {
    transform: scale(1.02);
}

.card-premium .card-front,
.card-premium .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 25px;
    color: white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.card-premium .card-front::before,
.card-premium .card-back::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.card-premium .card-back {
    transform: rotateY(180deg);
}

.card-premium .card-number {
    font-family: 'Courier New', monospace;
    font-size: 22px;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Efectos de brillo en las tarjetas */
.card-premium .card-front::after,
.card-premium .card-back::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* Responsive para tarjetas */
@media (max-width: 768px) {
    .card-premium .card-inner {
        height: 200px;
    }
    .card-premium .card-number {
        font-size: 18px !important;
    }
    .card-premium .card-front,
    .card-premium .card-back {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .card-premium .card-inner {
        height: 180px;
    }
    .card-premium .card-number {
        font-size: 15px !important;
        letter-spacing: 1px;
    }
    .card-premium .card-front .titular {
        font-size: 12px;
    }
}

/* Animación de entrada para tarjetas */
.card-premium {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}