/* style.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.main-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 800px;
    text-align: center;
}

h1 {
    color: #1a73e8;
    margin-bottom: 10px;
}

h2 {
    color: #1a73e8;
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
    resize: vertical;
}

button {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

button:hover:not(:disabled) {
    background-color: #155ab6;
    transform: translateY(-1px);
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

#retry-btn {
    background-color: #6c757d;
}

#retry-btn:hover:not(:disabled) {
    background-color: #5a6268;
}

.loading-container {
    padding: 40px 0;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1a73e8;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.review-content {
    display: flex;
    gap: 20px;
    text-align: left;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.script-box, .image-box {
    flex: 1;
    min-width: 300px;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    background-color: #fafafa;
}

.script-box h3, .image-box h3 {
    margin-top: 0;
    color: #1a73e8;
    font-size: 18px;
}

#script-output {
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
    background-color: white;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

#image-output {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.video-link {
    display: inline-block;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.video-link:hover {
    background-color: #218838;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 20px;
        margin: 10px;
    }
    
    .review-content {
        flex-direction: column;
    }
    
    .script-box, .image-box {
        min-width: auto;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    button {
        width: 100%;
        max-width: 300px;
    }
}

/* Status Indicators */
.status-indicator {
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: 500;
}

.status-success { 
    background-color: #d4edda; 
    color: #155724; 
    border: 1px solid #c3e6cb; 
}

.status-info { 
    background-color: #d1ecf1; 
    color: #0c5460; 
    border: 1px solid #bee5eb; 
}

.status-warning { 
    background-color: #fff3cd; 
    color: #856404; 
    border: 1px solid #ffeaa7; 
} 