/**
 * TnT CSV File Generator - Styles
 * Version 2.0.0
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding: 40px;
    transition: background 0.3s ease;
    background: linear-gradient(14deg,rgba(101, 22, 135, 1) 0%, rgba(233, 162, 148, 1) 100%);
    min-height: 100vh;
}

body.error-vpk {
    background: linear-gradient(45deg, #f5f5f5 0%, #ff4444 100%);
}

body.error-prd {
    background: linear-gradient(60deg, #f5f5f5 0%, #ff9944 100%);
}

body.error-prdCount {
    background: linear-gradient(60deg, #f5f5f5 0%, #ff9944 100%);
}

body.warning-http {
    background: linear-gradient(110deg, #f5f5f5 0%, #add8e6 100%);
}

body.error-duplicate {
    background: linear-gradient(240deg, #f5f5f5 0%, #ffcc00 100%);
}

body.error-param {
    background: linear-gradient(180deg, #f5f5f5 0%, #ff6666 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.counter {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 72px;
    font-weight: 900;
    color: #333;
    transition: color 0.3s ease;
    font-family: 'Consolas', monospace;
}

.counter.complete {
    color: #00cc44;
}

h1 {
    margin-bottom: 40px;
    color: #2c3e50;
    font-size: 54px;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    transition: color 0.3s ease;
}

h1.error {
    color: #e74c3c;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

select, input[type="text"], textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Consolas', monospace;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select:focus, input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

textarea {
    resize: vertical;
    min-height: 400px;
    line-height: 1.5;
}

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

.download-btn {
    display: none;
    background: linear-gradient(135deg, #0d462e 0%, #02bf68 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 24px;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(13, 70, 46, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn.visible {
    display: block;
    animation: slideIn 0.4s ease;
}

.download-btn:disabled {
    background: #ccc;
    cursor: wait;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.limit-info {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 4px;
}

input.error, textarea.error {
    border-color: #e74c3c;
}

.version-text {
    color: #c0c0c0;
    font-size: 14px;
    margin-top: -20px;
    text-align: right;
}

.version-text:hover {
    background: linear-gradient(90deg, #f0f, #0ff, #00f) -100%/ 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 100%;
    }
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.nav-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.nav-footer a {
    color: #3498db;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
}

.nav-footer a:hover {
    text-decoration: underline;
}
