/* Custom styling aligned with Move Tracker UI */

/* Main container styling */
main {
    flex: 1;
}

/* Card styling */
.card {
    border-radius: 8px;
    margin-bottom: 20px;
}

.card-header {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}

/* Form controls */
.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Badge styling */
.badge {
    padding: 5px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* Table styling */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    font-weight: 600;
}

/* Email content preview */
.email-content {
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    background-color: #ffffff; /* Ensure light background for readability */
    color: #212529; /* Dark text for contrast */
}

.email-content table {
    width: 100%;
}

.email-content table th,
.email-content table td {
    color: #212529;
}

.email-content {
    overflow-x: auto; /* Allow horizontal scroll for wide tables */
}

/* Alert styling */
.alert {
    border-radius: 8px;
}

/* Custom helper classes */
.bg-gradient {
    background-image: linear-gradient(to right, rgba(0,0,0,0.1), rgba(0,0,0,0)) !important;
}

/* Enhanced visual accessibility */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

/* Table cell styling to prevent text wrapping */
.table td {
    white-space: nowrap;
    vertical-align: middle;
    padding: 0.5rem 0.25rem;
}

/* Allow wrapping for Technicien column (12th column) */
.table td:nth-child(12) {
    white-space: normal;
    word-break: break-word;
    min-width: 120px;
    max-width: 200px;
}

/* Table responsive adjustments */
.table-responsive {
    overflow-x: auto;
}

/* Smaller font size for better fit at 100% zoom */
.table {
    font-size: 0.875rem;
}

/* Modal styling */
.modal-content {
    border-radius: 8px;
}

.modal-header {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Copy button animation */
.copy-btn.btn-success {
    transition: all 0.3s ease-in-out;
}

/* Pending month badge pulse and dot indicator */
.badge-pulse {
    position: relative;
    animation: pulseGlow 1.5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.pending-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ffc107; /* Bootstrap warning color */
    box-shadow: 0 0 6px rgba(255, 193, 7, 0.8);
}
