/* Bank Security App Styles */
.bank-security-container {
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    font-family: 'Ubuntu', sans-serif;
    overflow: hidden;
}

.bank-header {
    background: linear-gradient(90deg, #0f3460 0%, #16213e 100%);
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #00ff41;
}

.bank-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.bank-logo i {
    font-size: 3rem;
    color: #00ff41;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.bank-logo h2 {
    color: #fff;
    margin: 0;
    font-size: 1.8rem;
}

.bank-logo p {
    color: #ccc;
    margin: 0;
    font-size: 0.9rem;
}

.bank-dashboard {
    display: flex;
    height: calc(100% - 120px);
}

.dashboard-nav {
    width: 200px;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid #333;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
}

.nav-item:hover {
    background: rgba(0, 255, 65, 0.1);
    border-left-color: #00ff41;
}

.nav-item.active {
    background: rgba(0, 255, 65, 0.2);
    border-left-color: #00ff41;
    color: #00ff41;
}

.nav-item i {
    width: 16px;
    text-align: center;
}

.dashboard-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.content-section {
    display: none;
}

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

.content-section h3 {
    color: #00ff41;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

/* Security Stats */
.security-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: #00ff41;
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2rem;
    color: #00ff41;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #00ff41;
    margin-bottom: 5px;
}

.stat-label {
    color: #ccc;
    font-size: 0.9rem;
}

/* Threat Landscape */
.threat-landscape {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #333;
}

.threat-landscape h4 {
    color: #fff;
    margin-bottom: 15px;
}

.threat-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.threat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    border-left: 4px solid #666;
}

.threat-item.high {
    border-left-color: #ff4757;
}

.threat-item.medium {
    border-left-color: #ffa502;
}

.threat-item.low {
    border-left-color: #2ed573;
}

.threat-item i {
    margin-right: 10px;
    color: #ff4757;
}

.severity {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.threat-item.high .severity {
    background: #ff4757;
    color: white;
}

.threat-item.medium .severity {
    background: #ffa502;
    color: white;
}

/* Vulnerability Cards */
.vuln-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.vuln-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.vuln-card:hover {
    border-color: #00ff41;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 65, 0.2);
}

.vuln-card i {
    font-size: 2.5rem;
    color: #00ff41;
    margin-bottom: 15px;
}

.vuln-card h4 {
    color: #fff;
    margin-bottom: 10px;
}

.vuln-card p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.vuln-severity {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.vuln-severity.high {
    background: #ff4757;
    color: white;
}

.vuln-severity.medium {
    background: #ffa502;
    color: white;
}

.vuln-severity.low {
    background: #2ed573;
    color: white;
}

/* Vulnerability Details */
.vulnerability-detail {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #333;
}

.vuln-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.vuln-header h4 {
    color: #00ff41;
    margin: 0;
}

.vuln-actions {
    display: flex;
    gap: 10px;
}

.demo-btn, .exploit-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.demo-btn {
    background: #00ff41;
    color: #000;
}

.exploit-btn {
    background: #ff4757;
    color: white;
}

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

.vuln-content h5 {
    color: #fff;
    margin: 15px 0 5px 0;
}

.vuln-content p {
    color: #ccc;
    margin-bottom: 10px;
}

.vuln-content code {
    background: rgba(0, 0, 0, 0.5);
    padding: 8px;
    border-radius: 4px;
    color: #00ff41;
    font-family: 'Ubuntu Mono', monospace;
    display: block;
    margin: 10px 0;
}

/* Demo Results */
.demo-result, .exploit-result {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid #333;
}

.demo-result h5, .exploit-result h5 {
    color: #00ff41;
    margin-bottom: 10px;
}

.demo-steps {
    margin: 15px 0;
}

.step {
    padding: 8px 0;
    color: #ccc;
    border-left: 2px solid #333;
    padding-left: 15px;
    margin: 5px 0;
}

.step.success {
    border-left-color: #00ff41;
    color: #00ff41;
}

.demo-output, .exploit-details {
    background: rgba(0, 255, 65, 0.1);
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

/* Attack Scenarios */
.attack-scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.scenario-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.scenario-card:hover {
    border-color: #ff4757;
    transform: translateY(-5px);
}

.scenario-card i {
    font-size: 2.5rem;
    color: #ff4757;
    margin-bottom: 15px;
}

.scenario-card h4 {
    color: #fff;
    margin-bottom: 10px;
}

.scenario-card p {
    color: #ccc;
    font-size: 0.9rem;
}

/* Attack Simulation */
.attack-simulation {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #333;
}

.attack-simulation h4 {
    color: #ff4757;
    margin-bottom: 20px;
}

.attack-progress {
    margin-bottom: 20px;
}

.progress-bar {
    background: rgba(0, 0, 0, 0.5);
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    background: linear-gradient(90deg, #ff4757, #ff6b7a);
    height: 100%;
    transition: width 0.5s ease;
}

.progress-text {
    color: #ccc;
    font-size: 0.9rem;
}

.attack-steps {
    margin: 20px 0;
}

.attack-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #ccc;
}

.attack-step i {
    color: #666;
}

.attack-success {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid #ff4757;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.attack-success h5 {
    color: #ff4757;
    margin-bottom: 10px;
}

.attack-stats p {
    margin: 5px 0;
    color: #ccc;
}

/* Forensics Tools */
.forensics-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tool-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.tool-card:hover {
    border-color: #3742fa;
    transform: translateY(-5px);
}

.tool-card i {
    font-size: 2.5rem;
    color: #3742fa;
    margin-bottom: 15px;
}

.tool-card h4 {
    color: #fff;
    margin-bottom: 10px;
}

.tool-card p {
    color: #ccc;
    font-size: 0.9rem;
}

/* Forensics Analysis */
.forensics-analysis {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #333;
}

.forensics-analysis h4 {
    color: #3742fa;
    margin-bottom: 20px;
}

.suspicious-transactions, .log-entries, .traffic-patterns {
    margin-bottom: 20px;
}

.transaction-item, .log-entry, .traffic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    margin: 8px 0;
    font-family: 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
}

.log-entry.suspicious {
    border-left: 4px solid #ffa502;
}

.log-entry.critical {
    border-left: 4px solid #ff4757;
}

.tx-flag, .traffic-flag {
    color: #ff4757;
    font-weight: bold;
}

.analysis-conclusion, .log-conclusion, .network-conclusion {
    background: rgba(55, 66, 250, 0.1);
    border: 1px solid #3742fa;
    border-radius: 8px;
    padding: 15px;
}

.analysis-conclusion p, .log-conclusion p, .network-conclusion p {
    margin: 5px 0;
    color: #ccc;
}

/* CTF Challenges */
.ctf-challenges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ctf-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.ctf-card:hover {
    border-color: #00ff41;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 65, 0.2);
}

.ctf-difficulty {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.ctf-difficulty.easy {
    background: #2ed573;
    color: white;
}

.ctf-difficulty.medium {
    background: #ffa502;
    color: white;
}

.ctf-difficulty.hard {
    background: #ff4757;
    color: white;
}

.ctf-card h4 {
    color: #fff;
    margin-bottom: 10px;
    margin-right: 60px;
}

.ctf-card p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.ctf-flag {
    background: rgba(0, 0, 0, 0.5);
    padding: 8px;
    border-radius: 4px;
    font-family: 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    color: #00ff41;
}

/* CTF Challenge Interface */
.ctf-challenge-active {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #333;
}

.ctf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.ctf-header h4 {
    color: #00ff41;
    margin: 0;
}

.ctf-description {
    margin-bottom: 20px;
    color: #ccc;
}

.ctf-interface {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.login-form, .payment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
}

.login-form h5, .payment-form h5 {
    color: #fff;
    margin-bottom: 10px;
}

.login-form input, .payment-form input {
    padding: 10px;
    border: 1px solid #333;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.login-form button, .payment-form button {
    padding: 12px;
    background: #00ff41;
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.session-interface {
    max-width: 400px;
}

.session-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.session-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.session-item:hover {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid #00ff41;
}

.ctf-hint {
    background: rgba(255, 165, 2, 0.1);
    border: 1px solid #ffa502;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #ffa502;
}

.ctf-success {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid #00ff41;
    border-radius: 8px;
    padding: 15px;
    color: #00ff41;
}

.ctf-failed {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid #ff4757;
    border-radius: 8px;
    padding: 15px;
    color: #ff4757;
}

.solve-btn {
    background: #00ff41;
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .bank-dashboard {
        flex-direction: column;
    }
    
    .dashboard-nav {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }
    
    .nav-item {
        white-space: nowrap;
        min-width: 120px;
        justify-content: center;
    }
    
    .dashboard-content {
        padding: 15px;
    }
    
    .security-stats, .vuln-categories, .attack-scenarios, .forensics-tools, .ctf-challenges {
        grid-template-columns: 1fr;
    }
    
    .vuln-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .vuln-actions {
        width: 100%;
        justify-content: space-between;
    }
}