/* Gépjármű Adásvételi Szerződés Generátor - Stílusok */

.gasg-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gasg-user-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.gasg-user-info p {
    margin: 0;
    color: #495057;
    font-size: 14px;
}

.gasg-form-section {
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    background: #fafbfc;
}

.gasg-form-section h3 {
    margin: 0 0 20px 0;
    color: #212529;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

.gasg-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.gasg-form-field {
    flex: 1;
    min-width: 280px;
}

.gasg-form-field label {
    display: block;
    margin-bottom: 6px;
    color: #495057;
    font-weight: 500;
    font-size: 14px;
}

.gasg-form-field input[type="text"],
.gasg-form-field input[type="date"],
.gasg-form-field input[type="time"],
.gasg-form-field input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

.gasg-form-field input:focus {
    outline: 0;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.25);
}

.gasg-form-field input:invalid {
    border-color: #dc3545;
}

.gasg-form-field input[readonly] {
    background-color: #f8f9fa;
    opacity: 1;
}

.gasg-form-actions {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #e9ecef;
    margin-top: 30px;
}

.gasg-submit-btn {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 200px;
}

.gasg-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.4);
}

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

.gasg-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Google Login Button */
.gasg-google-login {
    text-align: center;
    margin: 20px 0;
}

.gasg-google-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: #fff;
    color: #333;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gasg-google-btn:hover {
    background: #f8f9fa;
    border-color: #4285f4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
    transform: translateY(-1px);
    color: #333;
    text-decoration: none;
}

.gasg-logout {
    margin-left: 15px;
}

.gasg-logout-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.gasg-logout-btn:hover {
    background: #e9ecef;
    color: #333;
    border-color: #ccc;
    text-decoration: none;
}

.gasg-login-required {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.gasg-login-required h3 {
    color: #495057;
    margin-bottom: 15px;
}

.gasg-login-required p {
    color: #6c757d;
    margin-bottom: 25px;
}

/* Loading and Result States */
#gasg-loading {
    text-align: center;
    padding: 20px;
    color: #007cba;
    font-weight: 500;
}

#gasg-result {
    padding: 20px;
    margin-top: 20px;
    border-radius: 6px;
}

#gasg-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#gasg-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.gasg-download-link {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 10px;
    font-weight: 500;
}

.gasg-download-link:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gasg-form {
        margin: 10px;
        padding: 15px;
    }

    .gasg-form-row {
        flex-direction: column;
        gap: 15px;
    }

    .gasg-form-field {
        min-width: auto;
    }

    .gasg-user-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .gasg-logout {
        margin-left: 0;
    }

    .gasg-submit-btn {
        width: 100%;
        max-width: 300px;
    }

    /* Dark mode mobile styles */
    [data-theme="dark"] .gasg-form {
        background: #2b2b2b;
        color: #e0e0e0;
    }

    [data-theme="dark"] .gasg-user-info {
        background: #333333;
    }

    [data-theme="dark"] .gasg-form-section {
        background: #333333;
    }
}

@media (max-width: 480px) {
    .gasg-form {
        margin: 5px;
        padding: 10px;
    }

    .gasg-form-section {
        padding: 15px;
    }

    .gasg-form-section h3 {
        font-size: 16px;
    }

    .gasg-google-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Dark mode mobile styles for small screens */
    [data-theme="dark"] .gasg-form {
        background: #2b2b2b;
        color: #e0e0e0;
    }

    [data-theme="dark"] .gasg-form-section {
        background: #333333;
    }
}

/* Dark Mode Styles */
[data-theme="dark"] .gasg-form {
    background: #2b2b2b;
    color: #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .gasg-user-info {
    background: #333333;
    color: #e0e0e0;
}

[data-theme="dark"] .gasg-user-info p {
    color: #ccc;
}

[data-theme="dark"] .gasg-form-section {
    background: #333333;
    border-color: #444444;
}

[data-theme="dark"] .gasg-form-section h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .gasg-form-field label {
    color: #ccc;
}

[data-theme="dark"] .gasg-form-field input[type="text"],
[data-theme="dark"] .gasg-form-field input[type="date"],
[data-theme="dark"] .gasg-form-field input[type="time"],
[data-theme="dark"] .gasg-form-field input[type="number"] {
    background: #1a1a1a;
    color: #e0e0e0;
    border-color: #555;
}

[data-theme="dark"] .gasg-form-field input:focus {
    border-color: #007cba;
    background: #1a1a1a;
}

[data-theme="dark"] .gasg-form-field input[readonly] {
    background-color: #333333;
}

[data-theme="dark"] .gasg-form-actions {
    border-top-color: #444444;
}

[data-theme="dark"] .gasg-google-btn {
    background: #1a1a1a;
    color: #e0e0e0;
    border-color: #555;
}

[data-theme="dark"] .gasg-google-btn:hover {
    background: #333333;
    box-shadow: 0 1px 3px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .gasg-login-required {
    background: #333333;
}

[data-theme="dark"] .gasg-login-required h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .gasg-login-required p {
    color: #ccc;
}

[data-theme="dark"] #gasg-result.success {
    background: #1b4d3e;
    color: #4caf50;
    border-color: #4caf50;
}

[data-theme="dark"] #gasg-result.error {
    background: #4d1b1b;
    color: #f44336;
    border-color: #f44336;
}