:root {
    --primary: #2196F3;
    --background: #f5f5f5;
    --card-bg: #ffffff;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--background);
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}


.transcription-list {
    overflow: auto;
    border-bottom: 1px solid #ddd;
    width: fit-content;
}

.transcription-view {
    padding: 0.5rem;
    background: white;
    word-wrap: break-word;
    overflow: auto;
    white-space: pre-wrap
}

#transcription-content * {
    margin: 0;
    padding: 0;
    line-height: 1;
    border-collapse: collapse; /* For tables if used */
}

/* Optional: if using block elements */
#transcription-content p, 
#transcription-content div,
#transcription-content li {
    margin: 0;
    padding: 0;
    line-height: inherit;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word;
}

tr:hover {
    background-color: #f5f5f5;
}

.modal-lg {
    width: 90% !important;
    max-width: 90% !important;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .container {
        grid-template-rows: auto auto;
    }
    
    .transcription-list {
        height: 50vh;
    }

    .transcription-view {
        height: auto;
    }
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
    margin-left: 10px;
}

.spinner.show {
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Close button styling */
.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    position: relative;
}

.modal-content .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    color: #aaa;
    background: none;
    border: none;
    line-height: 1;
    padding: 0;
}

.modal-content .close-button:hover {
    color: #333;
}

/* Prompt info styling */
.prompt-info {
    cursor: pointer;
    color: #2196F3;
    font-weight: bold;
    font-size: 1.2em;
}

.prompt-info[style*="color: green"] {
    color: green !important;
}

/* Login page alignment */


/* Upload modal form alignment */
#uploadModal .form-group {
    margin-bottom: 1rem;
}

#uploadModal .form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

header {
    position: relative;
    padding: 10px;
}

.logout-button {
    position: absolute;
    top: 10px;
    right: 10px;
}

#uploadModal button[type="submit"] {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-details {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.transcription-list-limited {
    height: 50%;
}

.badge.badge-success {
    cursor: pointer;
}

.progress-visible {
    display: block;
}

.progress-bar-width {
    width: 0%; /* Initial width, can be overridden */
}

.hidden {
    display: none;
}

.transcription-modal-dialog {
    max-width: 80%;
}

.full-height-container {
    max-height: 85vh;
}

.table-wrapper {
    height: 80vh; /* Adjust as needed */
    overflow: auto;
}

.table-wrapper thead {
    position: sticky;
    top: 0;
    background-color: #f2f2f2; /* Match table header background */
    z-index: 1;
}

.table-body {
    overflow-y: auto; /* Adjust as needed */
}
  /* Ensure the audio element takes full width */
  .audio-control {
    width: 100%;
  }
  .video-control {
      width: 100%;
      height: auto;
      object-fit: contain;
    }
  
  /* Allow scrolling within flex items */
  .scrollable-container {
    overflow-y: auto;
    /* Allow proper calculation of available space inside flex containers */
    max-height: 85vh;
  }
  .w85 {
    overflow-y: auto;
    /* Allow proper calculation of available space inside flex containers */
    max-height: 85vh;
    min-height: 70vh !important;
  }
  .mt-3ext {
    width: 95% !important;
    min-height: 70vh !important;
    max-width: 95% !important;
  }
  .play-button {
    background: none;
    border: none;
    color: #1a73e8;
    cursor: pointer;
    font-size: 1em;
    padding: 0 5px;
    margin-right: 5px;
    vertical-align: middle;
}

.play-button:hover {
    color: #0d5bba;
}

.align-middle {
    vertical-align: middle;
}

.max-width-200 {
    max-width: 200px;
}
.emotions-player-container {
    max-height: 25vh;
    overflow-y: auto;
}

.emotions-card-title {
    font-size: 0.9rem;
}
.emotion-speaker-label {
    font-size: 0.8rem; /* Applied via JS, but good to have a class if needed elsewhere */
}

.emotion-timeline-bar {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.emotion-chunk {
    position: absolute;
    height: 100%;
    cursor: pointer;
}

/* Emotion-specific background colors */
.emotion-chunk-angry { background-color: red; }
.emotion-chunk-positive { background-color: green; }
.emotion-chunk-neutral { background-color: gray; }
.emotion-chunk-sad { background-color: #ffc107; } /* Bootstrap warning yellow */
.emotion-chunk-default { background-color: #007bff; } /* Bootstrap primary blue */
/* Styles for email templates */
body.email-template { font-family: Arial, sans-serif; line-height: 1.6; color: #333; }
.email-template .container { width: 80%; margin: 20px auto; padding: 20px; border: 1px solid #ddd; border-radius: 5px; background-color: #f9f9f9; }
.email-template .button { display: inline-block; padding: 10px 20px; margin: 20px 0; background-color: #007bff; color: #ffffff; text-decoration: none; border-radius: 5px; }
.email-template .button:hover { background-color: #0056b3; }
.email-template .footer { margin-top: 20px; font-size: 0.9em; color: #777; }
/* Style for disabled links during processing */
.disabled-link {
    pointer-events: none; /* Prevents clicking */
    opacity: 0.65;      /* Visually indicate it's disabled */
}