/* E-Davetiye Manager Frontend Styles */

.edavetiye-form-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.edavetiye-form-container h3 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 15px;
}

.edavetiye-field {
    margin-bottom: 20px;
}

.edavetiye-field label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.edavetiye-field input[type="text"], .edavetiye-field input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.edavetiye-field input[type="text"]:focus, .edavetiye-field input[type="email"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.edavetiye-submit {
    width: 100%;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edavetiye-submit:hover {
    background: linear-gradient(135deg, #005a87 0%, #004466 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

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

.edavetiye-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.edavetiye-message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
}

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

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

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

.edavetiye-download-section {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.edavetiye-download-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.edavetiye-download-button {
    display: inline-block;
    background: #28a745;
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 10px 5px;
}

.edavetiye-download-button:hover {
    background: #218838;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.edavetiye-preview {
    margin: 20px 0;
    text-align: center;
}

.edavetiye-preview img {
    max-width: 100%;
    height: auto;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.edavetiye-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #666;
}

.edavetiye-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: edavetiye-spin 1s linear infinite;
    margin-right: 10px;
}

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

.edavetiye-field-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.edavetiye-error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Form Validation States */
.edavetiye-field.success input {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.edavetiye-field.error input {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .edavetiye-form-container {
        margin: 10px;
        padding: 20px;
    }
    
    .edavetiye-form-container h3 {
        font-size: 20px;
    }
    
    .edavetiye-field input[type="text"] {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .edavetiye-submit {
        font-size: 14px;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .edavetiye-form-container {
        padding: 15px;
    }
    
    .edavetiye-download-button {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
}

/* Animation for form submission */
.edavetiye-form-submitting {
    opacity: 0.7;
    pointer-events: none;
}

.edavetiye-form-submitting .edavetiye-submit {
    background: #ccc;
    cursor: not-allowed;
}

/* Success animation */
@keyframes edavetiye-success-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.edavetiye-success-animation {
    animation: edavetiye-success-pulse 0.6s ease-in-out;
}
