/* Terminal/Retro Style CSS */
.terminal-page {
    background-color: #000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow: auto;
}

/* Scanlines effect */
.terminal-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.03) 2px,
        rgba(0, 255, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1000;
}

/* Screen glow effect */
.terminal-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 255, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    pointer-events: none;
    z-index: 999;
}

.terminal-content {
    position: relative;
    z-index: 1001;
}

.terminal-header {
    color: #00ff00;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    text-shadow: 0 0 10px #00ff00;
}

.terminal-section {
    background-color: rgba(0, 20, 0, 0.3);
    border: 1px solid #00ff00;
    margin: 20px 0;
    padding: 15px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.terminal-section h3 {
    color: #00ff00;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 16px;
    text-shadow: 0 0 5px #00ff00;
}

.terminal-input {
    background-color: #000;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    width: 100%;
}

.terminal-input:focus {
    outline: none;
    box-shadow: 0 0 10px #00ff00;
    border-color: #00ff00;
}

.terminal-button {
    background-color: #000;
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 10px 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    cursor: pointer;
    margin: 5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.terminal-button:hover {
    background-color: #00ff00;
    color: #000;
    text-shadow: none;
    box-shadow: 0 0 15px #00ff00;
}

.terminal-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.terminal-button:disabled:hover {
    background-color: #000;
    color: #00ff00;
    box-shadow: none;
}

.terminal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.terminal-table th,
.terminal-table td {
    border: 1px solid #00ff00;
    padding: 8px;
    text-align: left;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.terminal-table th {
    background-color: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    text-transform: uppercase;
    text-shadow: 0 0 5px #00ff00;
}

.terminal-table tr:nth-child(even) {
    background-color: rgba(0, 255, 0, 0.05);
}

.terminal-table tr.paid-line {
    opacity: 0.3;
    color: #666;
}

.terminal-checkbox {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #00ff00;
    background-color: #000;
    position: relative;
    cursor: pointer;
}

.terminal-checkbox:checked::before {
    content: 'X';
    position: absolute;
    top: -2px;
    left: 2px;
    color: #00ff00;
    font-size: 12px;
    font-weight: bold;
}

.terminal-checkbox:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.terminal-summary {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    margin-bottom: 20px;
}

.terminal-form {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
}

.terminal-form label {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

.terminal-message {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 10px;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
    animation: blink 2s;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

.terminal-cursor::after {
    content: '_';
    animation: cursor-blink 1s infinite;
    color: #00ff00;
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .terminal-page {
        padding: 10px;
    }
    
    .terminal-form {
        grid-template-columns: 1fr;
    }
    
    .terminal-table {
        font-size: 10px;
    }
    
    .terminal-table th,
    .terminal-table td {
        padding: 4px;
    }
}

/* Banking/ATM style enhancements */
.terminal-transaction-line {
    border-left: 3px solid #00ff00;
    padding-left: 10px;
    margin: 5px 0;
}

.terminal-amount {
    font-weight: bold;
    text-shadow: 0 0 5px #00ff00;
}

.terminal-processing {
    animation: processing 1.5s infinite;
}

@keyframes processing {
    0% { color: #00ff00; }
    50% { color: #00aa00; }
    100% { color: #00ff00; }
}

.terminal-secure-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    z-index: 1002;
    text-shadow: 0 0 5px #00ff00;
}

.terminal-secure-indicator::before {
    content: '🔒 ';
}

/* Invoice generation animation */
.terminal-invoice-generating {
    background: linear-gradient(-45deg, rgba(0, 255, 0, 0.1), rgba(0, 255, 0, 0.05), rgba(0, 255, 0, 0.1), rgba(0, 255, 0, 0.05));
    background-size: 400% 400%;
    animation: invoice-pulse 2s ease-in-out infinite;
}

@keyframes invoice-pulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Bank-like status indicators */
.terminal-status-ok {
    color: #00ff00;
}

.terminal-status-warning {
    color: #ffff00;
}

.terminal-status-error {
    color: #ff4444;
}

/* Link styling for terminal theme */
a.terminal-button {
    color: #00ff00 !important;
    text-decoration: none !important;
}

a.terminal-button:hover {
    background-color: #00ff00 !important;
    color: #000 !important;
}