/* VEA CAST - Base Styles - Dark Theme */

:root {
    --primary-color: #4285f4;
    --primary-hover: #3367d6;
    --background: #121212;
    --card-background: #1e1e1e;
    --text-color: #ffffff;
    --error-color: #f44336;
    --success-color: #0f9d58;
    --info-background: #283428;
    --url-background: #2d2d2d;
    --icon-color: #fbbc05;
    --border-color: #333333;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
    text-align: center;
    background-color: var(--background);
    color: var(--text-color);
    min-height: 100vh;
}

.container {
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 5px 25px 25px 25px;
    margin-bottom: 20px;
    background-color: var(--card-background);
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.app-header {
    text-align: center;
    margin-bottom: 20px;
}

.app-header h1 {
    color: var(--text-color);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.5rem;
}

.logo-icon {
    fill: var(--icon-color);
    width: 24px;
    height: 24px;
}

/* Button Styles */
.btn {
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    outline: none;
    padding: 10px 16px;
}

.btn:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.primary-btn:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

.secondary-btn {
    background-color: var(--url-background);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
}

.secondary-btn:hover:not(:disabled) {
    background-color: rgba(66, 133, 244, 0.1);
}

/* Card Styles */
.card {
    background-color: var(--card-background);
    border-radius: 4px;
    padding: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status and Progress */
.status-message {
    text-align: center;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 4px;
    font-weight: 500;
    background-color: var(--url-background);
    border: 1px solid var(--border-color);
}

.status-success {
    background-color: var(--info-background);
    color: #a5d6a7;
}

.status-error {
    background-color: rgba(244, 67, 54, 0.2);
    color: #ef9a9a;
}

.status-info {
    background-color: var(--info-background);
    color: #90caf9;
}

.status-warning {
    background-color: rgba(255, 193, 7, 0.2);
    color: #fff9c4;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 16px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #21cbf3);
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: progress-shine 2s infinite;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid var(--primary-color);
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Separator */
.separator {
    height: 1px;
    background-color: var(--border-color);
    margin: 10px 0;
    width: 100%;
}

/* Icons */
.icon {
    fill: none;
    stroke: white;
    stroke-width: 2;
    width: 20px;
    height: 20px;
}

.icon-status {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 16px;
    }
    
    .container {
        padding: 16px;
    }
    
    .app-header h1 {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }
    
    .app-header h1 {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .card {
        padding: 12px;
    }
    
    .btn {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }
.visible { display: block !important; }

.separator { 
    height: 1px; 
    background-color: var(--border-color); 
    margin: 10px 0; 
    width: 100%; 
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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