/* Send Result Page Specific Styles */

/* Period buttons */
.period-btn {
    transition: all 0.2s ease;
}

.period-btn:hover:not(.bg-primary45) {
    background-color: #E5E7EB;
}

/* Filter inputs */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Summary cards animation */
.grid > div {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Table styles */
table {
    border-collapse: separate;
    border-spacing: 0;
}

tbody tr {
    transition: background-color 0.15s ease;
}

tbody tr:hover {
    background-color: #F9FAFB;
}

/* Checkbox styles */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #7C3AED;
}

input[type="checkbox"]:focus {
    outline: 2px solid #7C3AED;
    outline-offset: 2px;
}

/* Status badges */
.bg-green-100 {
    background-color: #D1FAE5;
}

.text-green-700 {
    color: #047857;
}

.bg-blue-100 {
    background-color: #DBEAFE;
}

.text-blue-700 {
    color: #1D4ED8;
}

.text-green-600 {
    color: #059669;
}

.text-blue-600 {
    color: #2563EB;
}

/* Message type badges */
tbody td span {
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Truncate text */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Pagination buttons */
.flex button:not(.bg-primary45):not(:disabled):hover {
    background-color: #F3F4F6;
}

.flex button:disabled {
    cursor: not-allowed;
}

/* Bulk action buttons */
.bg-red50:hover:not(:disabled) {
    background-color: #FEE2E2;
}

.bg-red50:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Excel download button animation */
.fa-download {
    transition: transform 0.2s ease;
}

button:hover .fa-download {
    transform: translateY(2px);
}

/* Detail view button */
.fa-eye {
    transition: transform 0.2s ease;
}

button:hover .fa-eye {
    transform: scale(1.2);
}

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

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Select dropdown styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1em;
    padding-right: 2rem;
}

select:focus {
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Input focus styles */
input:focus {
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Modal overlay */
.fixed.inset-0 {
    backdrop-filter: blur(4px);
}

/* Responsive table scroll */
.overflow-x-auto {
    scrollbar-width: thin;
    scrollbar-color: #D1D5DB transparent;
}

.overflow-x-auto::-webkit-scrollbar {
    height: 6px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: transparent;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Filter section shadow on scroll */
.bg-white.rounded-xl {
    position: relative;
}

.bg-white.rounded-xl::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.05), transparent);
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .grid.grid-cols-2 > div {
        padding: 12px;
    }

    .grid.grid-cols-2 > div p:first-child {
        font-size: 10px;
    }

    .grid.grid-cols-2 > div p.text-2xl {
        font-size: 1.25rem;
    }

    /* Stack filter buttons vertically on mobile */
    .flex.gap-1 {
        flex-wrap: wrap;
    }

    .period-btn {
        flex: 1;
        min-width: 60px;
    }
}