/* Retro Terminal Styling - TT Sales Agent */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'VT323', 'Courier New', monospace;
    background: #000;
    color: #00ff00;
    font-size: 20px;
    line-height: 1.4;
    padding: 20px;
    position: relative;
    min-height: 100vh;
}

/* CRT Screen Effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1000;
}

/* Glow Effect */
.glow {
    text-shadow: 0 0 10px #00ff00,
                 0 0 20px #00ff00,
                 0 0 30px #00ff00;
}

/* Terminal Container */
.terminal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    border: 2px solid #00ff00;
    border-radius: 10px;
    background: rgba(0, 20, 0, 0.8);
    box-shadow: 0 0 50px rgba(0, 255, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* Blinking Cursor */
.cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background: #00ff00;
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Input Fields */
input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
    background: #000;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: 'VT323', monospace;
    font-size: 20px;
    padding: 10px;
    width: 100%;
    outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 10px #00ff00;
    border-color: #00ff00;
}

/* Buttons */
button, .btn {
    background: #000;
    border: 2px solid #00ff00;
    color: #00ff00;
    font-family: 'VT323', monospace;
    font-size: 20px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 20px #00ff00;
}

/* Links */
a {
    color: #00ff00;
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

/* Menu Items */
.menu-item {
    display: block;
    padding: 15px 20px;
    margin: 10px 0;
    border: 1px solid #00ff00;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #00ff00;
}

.menu-item:hover {
    background: rgba(0, 255, 0, 0.2);
    padding-left: 30px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    max-width: 800px;
    margin: 0 auto;
}

/* Progress Bar */
.progress {
    width: 100%;
    height: 30px;
    border: 1px solid #00ff00;
    background: #000;
    position: relative;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    background: #00ff00;
    transition: width 0.5s;
    box-shadow: 0 0 20px #00ff00;
}

/* ASCII Art */
pre {
    font-family: 'VT323', monospace;
    color: #00ff00;
    line-height: 1.2;
    white-space: pre;
    overflow-x: auto;
}

/* Status Indicators */
.status-active {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.status-pending {
    color: #ffff00;
    text-shadow: 0 0 10px #ffff00;
}

.status-error {
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000;
}

.status-complete {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

/* Scanlines Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.1)
    );
    background-size: 100% 4px;
    z-index: 999;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th,
table td {
    padding: 10px;
    border: 1px solid #00ff00;
    text-align: left;
}

table th {
    background: rgba(0, 255, 0, 0.1);
    text-shadow: 0 0 10px #00ff00;
}

table tr:hover {
    background: rgba(0, 255, 0, 0.05);
}

/* Loading Animation */
.loading {
    display: inline-block;
    animation: loading 1s infinite;
}

@keyframes loading {
    0%, 100% { content: '█████░░░░░░'; }
    25% { content: '░░░░█████░░░'; }
    50% { content: '░░░░░░░█████'; }
    75% { content: '█░░░░░░░░░██'; }
}

/* Form Sections */
.form-section {
    margin: 30px 0;
    padding: 20px;
    border: 1px solid #00ff00;
}

.form-section h2 {
    margin-bottom: 20px;
    text-shadow: 0 0 10px #00ff00;
}

/* Messages */
.message {
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #00ff00;
    text-align: center;
}

.message.success {
    border-color: #00ff00;
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
}

.message.error {
    border-color: #ff0000;
    color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

.message.info {
    border-color: #00ffff;
    color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        padding: 10px;
    }

    .terminal {
        padding: 20px;
    }

    pre {
        font-size: 12px;
    }

    .menu-item {
        padding: 10px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #00ff00;
    border: 1px solid #00ff00;
}

::-webkit-scrollbar-thumb:hover {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

/* Card/Panel Styling */
.panel {
    border: 1px solid #00ff00;
    padding: 20px;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.5);
}

.panel-header {
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #00ff00;
}

/* Grid Layouts */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .grid-2col,
    .grid-3col {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
