/* CSS styles for PDF Form Field Generator */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5em;
    font-weight: 300;
}

p {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1em;
}

/* Drop Zone Styles */
.drop-zone {
    border: 3px dashed #007bff;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    background-color: #f8f9ff;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.drop-zone:hover {
    border-color: #0056b3;
    background-color: #e6f3ff;
    transform: translateY(-2px);
}

.drop-zone.drag-over {
    border-color: #28a745;
    background-color: #e6f7e6;
    transform: scale(1.02);
}

.drop-zone-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.7;
}

.drop-zone h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.5em;
    font-weight: 400;
}

.drop-zone p {
    color: #666;
    margin-bottom: 0;
}

.browse-link {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    pointer-events: all;
}

.browse-link:hover {
    color: #0056b3;
}

/* Processing Styles */
.processing {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.processing p {
    color: #666;
    font-size: 1.2em;
    margin: 0;
}

/* Result Styles */
.result {
    text-align: center;
    padding: 40px 20px;
}

.success-message h3 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.success-message p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.download-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    text-decoration: none;
    color: white;
}

/* Error Styles */
.error {
    text-align: center;
    padding: 40px 20px;
}

.error-message h3 {
    color: #dc3545;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.error-message p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.retry-btn {
    background-color: #007bff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .drop-zone {
        padding: 40px 15px;
    }
    
    .upload-icon {
        font-size: 3em;
    }
}

/* Authentication Styles */
.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

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

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

.flash-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

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

.user-info {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-picture {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #007bff;
}

.user-text p {
    margin: 0;
    text-align: left;
}

.user-email {
    color: #6c757d;
    font-size: 0.9em;
}

.logout-btn {
    background-color: #dc3545;
    color: white;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: #c82333;
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
}

.login-prompt {
    text-align: center;
    padding: 60px 20px;
}

.login-content {
    max-width: 400px;
    margin: 0 auto;
}

.login-content h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 400;
}

.login-content p {
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1em;
    line-height: 1.5;
}

.google-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #4285f4;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.google-login-btn:hover {
    background-color: #3367d6;
    text-decoration: none;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.google-logo {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 2px;
    padding: 2px;
}

/* Responsive Design for Authentication */
@media (max-width: 600px) {
    .user-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .user-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .login-content {
        padding: 0 10px;
    }
    
    .google-login-btn {
        padding: 12px 25px;
        font-size: 1em;
    }
}

/* Instructions Section Styles */
.instructions-section {
    background-color: #f8f9ff;
    border: 2px solid #e6f3ff;
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.instructions-section[open] {
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

.instructions-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    list-style: none;
}

.instructions-header::-webkit-details-marker {
    display: none;
}

.instructions-header::marker {
    content: '';
}

.instructions-header:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
}

.instructions-icon {
    font-size: 1.2em;
}

.instructions-toggle {
    margin-left: auto;
    font-size: 0.9em;
    opacity: 0.8;
}

.instructions-content {
    padding: 25px;
    background-color: white;
    animation: slideDown 0.3s ease;
}

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

.instructions-intro {
    color: #555;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: left;
}

.syntax-section,
.field-types,
.parameters-section,
.tips-section {
    margin-bottom: 25px;
}

.syntax-section h4,
.field-types h4,
.parameters-section h4,
.tips-section h4 {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.syntax-example {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

.field-type {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f8f9ff;
    border-left: 4px solid #007bff;
    border-radius: 0 6px 6px 0;
}

.field-type strong {
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.field-examples {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.8;
    color: #555;
}

.parameters-list,
.tips-list {
    margin: 0;
    padding-left: 20px;
    color: #555;
    line-height: 1.8;
}

.parameters-list li,
.tips-list li {
    margin-bottom: 5px;
}

code {
    background-color: #f1f3f4;
    color: #d73a49;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    font-weight: 600;
}

/* Responsive Design for Instructions */
@media (max-width: 600px) {
    .instructions-header {
        padding: 12px 15px;
        font-size: 1em;
    }
    
    .instructions-content {
        padding: 20px 15px;
    }
    
    .field-type {
        padding: 12px;
    }
    
    .syntax-example {
        padding: 12px;
        font-size: 0.9em;
    }
    
    .field-examples {
        font-size: 0.85em;
    }
}