/* Modern Student Interface Variables */
:root {
    --primary-color: #004d80;
    /* Deep Bank Blue */
    --secondary-color: #f47b20;
    /* Brand Orange */
    --accent-color: #00b4d8;
    /* Light Blue Accent */
    --bg-color: #f8f9fa;
    /* Light Gray Background */
    --card-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #6c757d;
    --font-family: 'Lato', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-md: 12px;
    --radius-lg: 20px;
}

body {
    background-color: var(--bg-color);
    font-family: var(--font-family);
    color: var(--text-primary);
}

/* Modern Card */
.card-modern {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.card-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-modern .card-header-modern {
    background: transparent;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-modern .card-body-modern {
    padding: 1.5rem;
}

/* Headings */
h1,
h2,
h3,
h4 {
    color: var(--primary-color);
    font-weight: 700;
}

/* Modern Banking Cards (Credit/Debit representation) */
.bank-card {
    background: linear-gradient(135deg, var(--secondary-color), #ff9f43);
    color: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.bank-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    pointer-events: none;
}

.bank-card .card-number {
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.bank-card .card-holder {
    text-transform: uppercase;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Balance Highlight */
.balance-display {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.balance-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* Modern Form Elements */
.form-modern label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-control-modern {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    transition: border-color 0.3s;
}

.form-control-modern:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 77, 128, 0.1);
    outline: none;
}

/* Modern Buttons */
.btn-modern-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-modern-primary:hover {
    background-color: #003a61;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 77, 128, 0.2);
}

/* Table Styling */
.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    background-color: #f1f3f5;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.table-modern tbody td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

.table-modern tbody tr:hover {
    background-color: rgba(0, 77, 128, 0.02);
}

/* Amount Colors */
.amount-positive {
    color: #2ecc71;
    font-weight: 600;
}

.amount-negative {
    color: #e74c3c;
    font-weight: 600;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Bizum Mobile Simulator */
.mobile-wrapper {
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 340px;
    height: 700px;
    margin: 50px auto;
    border: 8px solid #333;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.mobile-header {
    background: #00b4d8;
    padding: 20px;
    text-align: center;
}

.mobile-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bizum-logo {
    width: 120px;
    margin-bottom: 20px;
}

/* Legacy Credit Card Grid (for JS Injection) */
:root {
    --card-height: 250px;
    --card-width: 400px;
}

.creditCard {
    background: linear-gradient(#F59335, #F5924E);
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: var(--card-height);
    width: var(--card-width);
    margin: 0 auto;
}

.creditCard .cardBody {
    position: relative;
    top: -20px;
    left: 20px;
}

.creditCard .cardnumber,
.creditCard .date,
.creditCard .cvc {
    font-family: monospace;
    font-size: 1.1em;
}