/* SecureBank - Professional Banking Theme */
/* FOR VAPT TRAINING ONLY */

:root {
    --primary: #0a2540;
    --primary-light: #1a3a5c;
    --primary-dark: #061829;
    --accent: #c9a227;
    --accent-light: #e8c84a;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --bg: #f0f4f8;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content { flex: 1; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.logo-icon { font-size: 28px; }

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.15);
    color: white;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-greeting {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--primary-dark);
    border-color: var(--accent);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201,162,39,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--border);
}

.btn-outline:hover {
    background: var(--bg);
    border-color: var(--primary);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

.navbar .btn-outline {
    color: white;
    border-color: rgba(255,255,255,0.4);
}

.navbar .btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* Hero */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    padding: 80px 24px;
}

.hero-badge {
    display: inline-block;
    background: rgba(201,162,39,0.2);
    color: var(--accent-light);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(201,162,39,0.3);
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-text .highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat strong {
    display: block;
    font-size: 28px;
    color: var(--accent-light);
    font-weight: 800;
}

.stat span {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.hero-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card-preview {
    background: linear-gradient(135deg, #1a3a5c 0%, #0a2540 100%);
    border-radius: 16px;
    padding: 28px;
    color: white;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.1);
    min-height: 200px;
}

.card-chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 6px;
    margin-bottom: 24px;
}

.card-number {
    font-size: 22px;
    letter-spacing: 4px;
    margin-bottom: 20px;
    font-family: monospace;
}

.card-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.card-logo {
    position: absolute;
    bottom: 28px;
    right: 28px;
    font-weight: 800;
    font-size: 16px;
    color: var(--accent-light);
}

.quick-login {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.quick-login h3 {
    margin-bottom: 16px;
    color: var(--primary);
}

/* Services */
.services-section {
    padding: 100px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 18px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* About */
.about-section {
    padding: 100px 0;
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    margin-top: 24px;
}

.feature-list li {
    padding: 8px 0;
    color: var(--text);
    font-weight: 500;
}

.trust-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
}

.badge-icon { font-size: 48px; margin-bottom: 16px; display: block; }

/* VAPT Section */
.vapt-section { padding: 60px 0; }

.vapt-banner {
    background: linear-gradient(135deg, #7c2d12, #991b1b);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    color: white;
}

.vapt-banner h3 { margin-bottom: 12px; font-size: 24px; }
.vapt-banner p { margin-bottom: 24px; opacity: 0.9; }

.vuln-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.vuln-tags span {
    background: rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
}

.vapt-hint {
    background: #fef3c7;
    border-left: 4px solid var(--warning);
    padding: 8px 12px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 12px;
}

.vapt-hint code {
    background: rgba(0,0,0,0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer .logo { margin-bottom: 16px; }

.footer-brand p { font-size: 14px; line-height: 1.7; }

.vapt-notice {
    margin-top: 16px;
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 600;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-links ul { list-style: none; }

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    line-height: 2.2;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent-light); }

.footer-contact p { font-size: 14px; margin-bottom: 8px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* Auth Pages */
.auth-page {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, var(--bg) 0%, #dbeafe 100%);
}

.auth-container {
    display: grid;
    grid-template-columns: 420px 1fr;
    max-width: 900px;
    width: 100%;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.auth-card { padding: 48px; }

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h2 {
    color: var(--primary);
    margin: 16px 0 8px;
}

.auth-side {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 48px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-side h3 { font-size: 28px; margin-bottom: 16px; }
.auth-side p { opacity: 0.85; margin-bottom: 24px; }
.auth-side ul { list-style: none; }
.auth-side li { padding: 8px 0; opacity: 0.9; }

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.sqli-payloads {
    list-style: none;
    text-align: left;
    margin: 8px 0;
    padding: 0;
}

.sqli-payloads li {
    margin-bottom: 6px;
}

.sqli-payloads code {
    background: rgba(0,0,0,0.06);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea,
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10,37,64,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.link:hover { text-decoration: underline; }

.inline-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 20px;
}

/* Dashboard */
.dashboard { padding: 40px 0; }

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 32px;
    color: var(--primary);
    font-weight: 800;
}

.page-header p { color: var(--text-muted); }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dashboard-grid-2 {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    font-size: 16px;
    color: var(--primary);
    font-weight: 700;
}

.balance-amount {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    margin: 16px 0 8px;
}

.account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.account-item:last-child { border-bottom: none; }

.account-type {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
}

.account-number {
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
}

.account-balance {
    font-weight: 700;
    color: var(--primary);
}

.quick-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* Balance Cards */
.balance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.balance-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
}

.balance-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.account-type-badge {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.account-id { font-size: 12px; opacity: 0.7; }

.balance-card-number {
    font-family: monospace;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.balance-card-amount {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.balance-card-holder {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 16px;
}

.balance-card .btn-outline {
    color: white;
    border-color: rgba(255,255,255,0.4);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th {
    text-align: left;
    padding: 12px;
    background: var(--bg);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.table tr:hover td { background: var(--bg); }

/* Badges & Alerts */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }

.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }

.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }

/* OTP */
.otp-display {
    background: var(--bg);
    padding: 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
}

.confirm-details {
    background: var(--bg);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.confirm-details p { margin-bottom: 8px; }

/* Admin */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 28px;
}

.stat-icon { font-size: 32px; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.admin-links { list-style: none; }
.admin-links li { margin-bottom: 8px; }
.admin-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    border-bottom: 1px solid var(--border);
}

.vapt-hint-box {
    margin-top: 24px;
    padding: 16px;
    background: #fef3c7;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.vapt-hint-box h4 { margin-bottom: 8px; color: #92400e; }
.vapt-hint-box ul { margin-left: 16px; }
.vapt-hint-box code { background: rgba(0,0,0,0.08); padding: 2px 6px; border-radius: 4px; }

.info-list div { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.info-list code { font-size: 12px; background: var(--bg); padding: 2px 8px; border-radius: 4px; }

/* Install Page */
.install-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 40px;
}

.install-container { width: 100%; max-width: 560px; }

.install-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.install-header { text-align: center; margin-bottom: 32px; }
.install-header h1 { color: var(--primary); margin: 16px 0 8px; font-size: 24px; }

.install-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.install-steps .step {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg);
    color: var(--text-muted);
}

.install-steps .step.active {
    background: var(--primary);
    color: white;
}

.requirements-list { list-style: none; margin: 20px 0; }
.requirements-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.requirements-list li.ok::before { content: '✅ '; }
.requirements-list li.fail::before { content: '❌ '; }

.install-success { text-align: center; }
.success-icon {
    width: 64px;
    height: 64px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.demo-credentials {
    background: var(--bg);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin: 24px 0;
    text-align: left;
}

.demo-credentials table { width: 100%; font-size: 14px; }
.demo-credentials td { padding: 6px 0; }

/* Responsive */
@media (max-width: 968px) {
    .hero-content { grid-template-columns: 1fr; }
    .hero-card { display: none; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .auth-container { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .dashboard-grid,
    .dashboard-grid-2 { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .nav-menu { display: none; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hero-text h1 { font-size: 32px; }
    .services-grid { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: 1fr; }
}
