/* Auth pages */
.auth-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.auth-card {
    animation: fadeIn 0.5s ease-in;
}

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

/* Main application */
body {
    background-color: #f8f9fa;
}

.card {
    border: none;
    border-radius: 0.5rem;
}

.table th {
    border-top: none;
    font-weight: 600;
}

.action-buttons .btn {
    padding: 0.25rem 0.5rem;
    margin: 0 0.1rem;
}

.summary-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-player {
    width: 100%;
    margin-top: 0.5rem;
}

.navbar-brand {
    font-weight: 600;
}

@media (max-width: 768px) {
    .card-header h3 {
        font-size: 1.25rem;
    }
    
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .action-buttons .btn {
        margin: 0.1rem 0;
    }
    
    .navbar-text {
        font-size: 0.9rem;
    }
}

/* Action buttons styling */
.action-buttons .btn {
    padding: 0.35rem 0.5rem;
    margin: 0.1rem;
    font-size: 0.8rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.action-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.action-buttons .play-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
}

.action-buttons .play-btn:hover {
    background: linear-gradient(135deg, #218838, #1e9e8a);
    color: white;
}

/* Mobile responsiveness for action buttons */
@media (max-width: 768px) {
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .action-buttons .btn {
        margin: 0.05rem 0;
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }
    
    .action-buttons .btn i {
        margin-right: 0.3rem;
    }
}

/* Audio player responsive */
@media (max-width: 576px) {
    #audioModal .modal-dialog {
        margin: 0.5rem;
    }
    
    #audioPlayerElement {
        height: 50px;
    }
}

/* Table improvements */
.table td {
    vertical-align: middle;
}

.summary-text {
    max-width: 300px;
}


/* Enhanced Audio Player Styles with Chrome Fix */
#audioPlayerElement {
    border-radius: 0.5rem;
    background: #f8f9fa;
    height: 60px;
    background-color: #2c3e50 !important;
}

/* Chrome-specific audio controls */
#audioPlayerElement::-webkit-media-controls-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

#audioPlayerElement::-webkit-media-controls-play-button {
    background-color: #28a745 !important;
    border-radius: 50% !important;
}

#audioPlayerElement::-webkit-media-controls-current-time-display,
#audioPlayerElement::-webkit-media-controls-time-remaining-display {
    color: white !important;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

#audioPlayerElement::-webkit-media-controls-timeline {
    background-color: rgba(255,255,255,0.3) !important;
    border-radius: 10px;
}

#audioPlayerElement::-webkit-media-controls-volume-slider {
    background-color: rgba(255,255,255,0.3) !important;
    border-radius: 10px;
}

#audioPlayerElement::-webkit-media-controls-mute-button {
    background-color: #ffc107 !important;
    border-radius: 50% !important;
}

/* Custom audio player fallback */
.custom-audio-player {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.5rem;
    padding: 1rem;
}

.audio-control-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

#audioLoading {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 2rem;
}

#audioFileInfo {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Audio status indicators */
#audioStatus .fas {
    margin-right: 0.5rem;
}

/* Browser compatibility warnings */
.audio-format-warning {
    font-size: 0.8rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 0.25rem;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

/* Mobile audio player adjustments */
@media (max-width: 768px) {
    #audioPlayerElement {
        height: 50px;
    }
    
    #audioModal .modal-dialog {
        margin: 1rem;
    }
}


/* Summary Column Styles */
.summary-column {
    max-width: 300px;
    min-width: 200px;
}

.summary-content {
    line-height: 1.4;
    word-wrap: break-word;
}

.summary-short, .summary-full {
    display: inline;
}

.summary-toggle {
    text-decoration: none;
    font-size: 0.75rem;
    vertical-align: baseline;
    color: #0d6efd !important;
}

.summary-toggle:hover {
    text-decoration: underline !important;
    color: #0a58ca !important;
}

/* Ensure text doesn't break layout */
.summary-content {
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Mobile responsiveness for summary column */
@media (max-width: 768px) {
    .summary-column {
        max-width: 200px;
        min-width: 150px;
    }
    
    .summary-content {
        font-size: 0.9rem;
    }
}

/* DataTable responsive enhancements */
.table td {
    vertical-align: top;
}

.summary-column .summary-content {
    padding: 0.25rem 0;
}

/* Company Logo Styles */
.company-logo {
    margin-bottom: 1rem;
}

.logo-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Password Toggle Button Styles */
.toggle-password {
    border-left: none;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.toggle-password:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.input-group:focus-within .toggle-password {
    border-color: #86b7fe;
    background-color: #fff;
}

/* Footer Styles */
.auth-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 1000;
}

.main-footer {
    background: #f8f9fa !important;
    margin-top: auto;
    text-align: center;
}

/* Auth page specific adjustments for footer */
.auth-body {
    padding-bottom: 80px; /* Make space for fixed footer */
}

/* Responsive footer */
@media (max-width: 768px) {
    .auth-footer {
        position: relative;
        margin-top: 2rem;
    }
    
    .auth-body {
        padding-bottom: 0;
    }
    
    .main-footer .container-fluid {
        text-align: center;
    }
    
    .main-footer .text-md-end {
        text-align: center !important;
        margin-top: 0.5rem;
    }
}

/* Enhanced input group styling */
.input-group .form-control {
    border-right: none;
}

.input-group .form-control:focus {
    border-right: 1px solid #86b7fe;
    z-index: 3;
}

.input-group .toggle-password {
    border-left: 0;
    border-right: 1px solid #ced4da;
}

.input-group .form-control:focus + .toggle-password {
    border-color: #86b7fe;
    border-left: 0;
}


/* Date Filter Styles */
.bg-light {
    background-color: #f8f9fa !important;
}

.date-filter-section {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.form-label.small {
    font-size: 0.875rem;
}

/* Created At Column Styles */
.created-at-column {
    font-size: 0.875rem;
    color: #6c757d;
}

.created-at-column .badge {
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

/* Filter Status */
#filterStatus {
    font-style: italic;
}

/* Responsive Date Filter */
@media (max-width: 768px) {
    .date-filter-section .row > div {
        margin-bottom: 0.5rem;
    }
    
    .date-filter-section .btn {
        margin-top: 0.25rem;
    }
    
    .created-at-column {
        font-size: 0.8rem;
    }
}

/* Button enhancements for filter */
#applyFilter, #resetFilter {
    font-size: 0.875rem;
}

/* Quick select styling */
#datePreset {
    font-size: 0.875rem;
}