/* =====================================================
   CONVENTIO - Application CSS
   Fichier consolidé de tous les styles de l'application
   ===================================================== */

/* ===== STYLES GÉNÉRAUX ===== */
body {

}

/* ===== FORMULAIRES - Styles de base ===== */

/* Messages d'erreur de formulaire */
.form-error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-error-icon {
    display: inline-block;
    margin-right: 0.25rem;
}

/* Champs en erreur */
.form-control.is-invalid {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

/* Amélioration visuelle des erreurs Symfony */
.invalid-feedback {
    display: block;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.invalid-feedback ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.invalid-feedback li {
    padding: 0.25rem 0;
}

.invalid-feedback li:before {
    content: "⚠ ";
    margin-right: 0.25rem;
}

/* ===== FORMULAIRES - Company Info ===== */

/* Étoiles désactivées pour les champs requis */
/*
.required:after {
    content: " *";
    color: #ef4444;
}
*/

.conditional-field {
    display: none;
}

.conditional-field.show {
    display: block;
}

.schedule-input {
    width: 3.5rem;
    text-align: center;
}

.time-separator {
    margin: 0 0.25rem;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
    border-color: #3b82f6;
}

/* ===== PAGES - LOGIN ===== */

/* Animation shake pour les erreurs */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

/* ===== PAGES - Company Info ===== */

/* Containers */
.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
}

/* Confirmation Section */
.confirmation-section {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.confirmation-section h3 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Info Rows */
.info-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.info-label {
    font-weight: 600;
    color: #495057;
}

.info-value {
    color: #212529;
}

/* Preserve line breaks and whitespace in text content */
.info-value-preformatted {
    white-space: pre-wrap;
}

/* Schedule Table */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid #dee2e6;
    padding: 8px;
    text-align: left;
}

.schedule-table th {
    background-color: #28a745;
    color: white;
    font-weight: 500;
}

/* Alerts */
.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #bee5eb;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* ===== PAGES - Error Page ===== */

.error-icon {
    font-size: 80px;
    color: #dc3545;
    margin-bottom: 30px;
}

.error-box {
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 40px;
    margin: 20px 0;
}

.error-box h1 {
    color: #dc3545;
    font-size: 2rem;
    margin-bottom: 20px;
}

.error-box .message {
    font-size: 1.1rem;
    color: #721c24;
    line-height: 1.6;
}

/* ===== PAGES - Success Page ===== */

.success-icon {
    font-size: 80px;
    color: #28a745;
    margin-bottom: 30px;
}

.success-box {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 40px;
    margin: 20px 0;
}

.success-box h1 {
    color: #28a745;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.success-box .message {
    font-size: 1.1rem;
    color: #155724;
    line-height: 1.6;
    margin: 20px 0;
}

.success-box .thanks {
    font-style: italic;
    margin-top: 30px;
    color: #155724;
}

/* ===== PAGES - User Info ===== */

.example-wrapper {
    margin: 1em auto;
    max-width: 800px;
    width: 95%;
    font: 18px/1.5 sans-serif;
}

.example-wrapper code {
    background: #F5F5F5;
    padding: 2px 6px;
}

/* ===== ANIMATIONS ===== */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Scale In Animation */
@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out;
}

/* Slide Down Animation */
@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-down {
    animation: slideDown 0.4s ease-out;
}

/* Bounce Slow Animation */
@keyframes bounceSlow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: bounceSlow 2s ease-in-out infinite;
}

/* ===== RESPONSIVE UTILITIES ===== */

/* Small containers for error/success pages */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 15px;
    }

    .error-box,
    .success-box {
        padding: 20px;
    }

    .error-icon,
    .success-icon {
        font-size: 60px;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ===== EMAIL STYLES ===== */

/* Base styles for all emails */
.email-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f3f4f6;
    margin: 0;
    padding: 0;
}

/* Email wrapper - Collection Request style */
.email-wrapper {
    max-width: 650px;
    margin: 30px auto;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

/* Email container - Contact/Standard style */
.email-container {
    max-width: 600px;
    margin: 20px auto;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Header styles - Collection Request (gradient) */
.email-header-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

/* Header styles - Standard blue */
.email-header-blue {
    background-color: #0d6efd;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 5px 5px 0 0;
}

/* Header styles - Contact blue */
.email-header-contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

/* Header styles - Info blue */
.email-header-info {
    background-color: #007bff;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

.email-header-gradient h1,
.email-header-blue h1,
.email-header-contact h1,
.email-header-info h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

/* Logo in emails */
.email-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

/* Content area - Collection Request */
.email-content-collection {
    padding: 40px 35px;
}

/* Content area - Standard */
.email-content-standard {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 0 0 5px 5px;
}

/* Content area - Contact */
.email-content-contact {
    padding: 30px;
}

/* Content area - Info */
.email-content-info {
    background-color: #f8f9fa;
    padding: 30px;
    border: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;
}

/* Greeting text */
.email-greeting {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 25px;
}

/* Message text */
.email-message {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Info boxes - Collection Request style */
.email-info-box {
    background: linear-gradient(to right, #f7fafc, #edf2f7);
    border-left: 4px solid #667eea;
    padding: 20px;
    margin: 25px 0;
    border-radius: 6px;
}

.email-info-box strong {
    color: #2d3748;
    display: block;
    margin-bottom: 10px;
}

.email-info-box p {
    margin: 8px 0;
    color: #4a5568;
}

/* Info box - Contact style */
.email-info-box-contact {
    background-color: #f9fafb;
    border-left: 4px solid #667eea;
    padding: 15px;
    margin-bottom: 20px;
}

.email-info-box-contact strong {
    color: #667eea;
}

/* Info box - Success (green) */
.email-info-box-success {
    background-color: white;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #28a745;
    border-radius: 4px;
}

/* Info box - Warning (yellow) */
.email-info-box-warning {
    background-color: #fff3cd;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

/* Message box - Contact */
.email-message-box {
    background-color: #f3f4f6;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

/* Button container */
.email-button-container {
    text-align: center;
    margin: 35px 0;
}

/* Buttons - Collection Request style (gradient) */
.email-button-gradient {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.email-button-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

/* Button - Standard blue */
.email-button-blue {
    display: inline-block;
    padding: 12px 30px;
    background-color: #0d6efd;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    margin: 20px 0;
}

/* Button - Success green */
.email-button-success {
    display: inline-block;
    padding: 15px 30px;
    background-color: #28a745;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 20px 0;
}

/* Deadline box */
.email-deadline-box {
    background-color: #fff5f5;
    border: 1px solid #fc8181;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.email-deadline-box strong {
    color: #c53030;
    font-size: 16px;
}

/* Help text */
.email-help-text {
    background-color: #f7fafc;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 14px;
    color: #718096;
}

/* Signature section */
.email-signature {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
    color: #4a5568;
}

.email-signature p {
    margin: 5px 0;
}

/* Footer - Collection Request style */
.email-footer-dark {
    background-color: #2d3748;
    color: #cbd5e0;
    padding: 25px;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}

.email-footer-dark a {
    color: #667eea;
    text-decoration: none;
}

/* Footer - Standard light */
.email-footer-light {
    background-color: #f9fafb;
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
}

/* Footer - Simple */
.email-footer-simple {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
}

/* Footer - Info style */
.email-footer-info {
    text-align: center;
    margin-top: 30px;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Label text */
.email-label {
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 5px;
}

/* Link in emails */
.email-link {
    word-break: break-all;
    background-color: white;
    padding: 10px;
    border-left: 3px solid #0d6efd;
}

/* ===== EMAIL - Collection Request Specific Styles ===== */

/* Body styles for collection request email */
.collection-request-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f4f6f8;
    margin: 0;
    padding: 0;
}

/* Email wrapper for collection request */
.collection-request-wrapper {
    max-width: 650px;
    margin: 30px auto;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

/* Header for collection request */
.collection-request-header {
    background: linear-gradient(135deg, #1e73be 0%, #0a4d8f 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

/* Logo in collection request */
.collection-request-logo {
    max-width: 180px;
    margin-bottom: 20px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header title */
.collection-request-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

/* Content area */
.collection-request-content {
    padding: 40px 35px;
}

/* Greeting */
.collection-request-greeting {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 25px;
}

/* Message */
.collection-request-message {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Info box */
.collection-request-info-box {
    background: linear-gradient(to right, #e3f2fd, #f0f7ff);
    border-left: 4px solid #1e73be;
    padding: 20px;
    margin: 25px 0;
    border-radius: 6px;
}

.collection-request-info-box strong {
    color: #2d3748;
    display: block;
    margin-bottom: 10px;
}

.collection-request-info-box p {
    margin: 8px 0;
    color: #4a5568;
}

/* Button container */
.collection-request-button-container {
    text-align: center;
    margin: 35px 0;
}

/* Button */
.collection-request-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #1e73be 0%, #0a4d8f 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(30, 115, 190, 0.4);
    transition: all 0.3s ease;
}

.collection-request-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 115, 190, 0.5);
}

/* Deadline box */
.collection-request-deadline-box {
    background-color: #fff5f5;
    border: 1px solid #fc8181;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.collection-request-deadline-box strong {
    color: #c53030;
    font-size: 16px;
}

/* Signature */
.collection-request-signature {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
    color: #4a5568;
}

.collection-request-signature p {
    margin: 5px 0;
}

/* Footer */
.collection-request-footer {
    background-color: #2d3748;
    color: #cbd5e0;
    padding: 25px;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}

.collection-request-footer a {
    color: #667eea;
    text-decoration: none;
}

/* Help text */
.collection-request-help-text {
    background-color: #f7fafc;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 14px;
    color: #718096;
}
