:root {
    --bg-dark: #0a0a0c;
    --card-bg: rgba(18, 18, 22, 0.95);
    --primary-blue: #00a2ff;
    --primary-glow: rgba(0, 162, 255, 0.4);
    --header-red: #8b0000;
    --header-red-dark: #660000;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: #333;
    --accent-gold: #ffd700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0c 0%, #1a1a2e 50%, #0a0a0c 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: -1;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.background-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 100, 150, 0.05) 0%, transparent 10%),
        radial-gradient(circle at 80% 70%, rgba(100, 200, 255, 0.05) 0%, transparent 10%);
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

textarea {
    width: 100%;
    height: 150px;
    background: #050507;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 15px;
    color: var(--text-main);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    resize: none;
    outline: none;
    transition: border-color 0.3s;
}

textarea:focus {
    border-color: var(--primary-blue);
}

.btn-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #0088ff, #00d2ff);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background: #2a2a2e;
    color: var(--text-muted);
    border: none;
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #3a3a3e;
    color: white;
}

.btn-small {
    background: #333;
    color: white;
    border: 1px solid #444;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
}

/* Table Styles */
.table-container-outer {
    border: 1px solid #1a3a4a;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.table-header-title {
    background: rgba(0, 162, 255, 0.05);
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 1px solid #1a3a4a;
}

.title-text {
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: 2px;
    font-size: 1.1rem;
}

#copy-btn {
    position: absolute;
    right: 15px;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.main-header th {
    background: var(--header-red);
    color: white;
    padding: 8px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bank-header th {
    background: var(--header-red-dark);
    color: white;
    padding: 10px 5px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid #4a0000;
    min-width: 70px;
}

tbody td {
    padding: 15px 5px;
    border: 1px solid #222;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: #111;
}

.footer-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
    border-top: 1px solid #333;
    font-weight: 700;
    font-size: 1rem;
}

#total-count {
    font-size: 1.2rem;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    .bank-header th {
        font-size: 0.65rem;
        min-width: 60px;
    }
    tbody td {
        font-size: 0.9rem;
    }
}
