/**
 * Professional Stylesheet - Maturitní témata
 * Plně responzivní design pro mobile-first
 * 
 * @version 2.0.0
 */

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primární barvy */
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    
    /* Barvy stavu */
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    
    /* Neutrální barvy */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Fonty */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    min-height: 100vh;
}

/* ==================== LOGIN PAGE ==================== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Admin page container - wider for tables */
body:not(.login-page) .container,
.dashboard-container {
    max-width: 1400px;
    padding: 20px;
}

/* Filter form styles */
.filter-form {
    width: 100%;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--gray-700);
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
    transition: var(--transition);
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Stats grid styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.login-box {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease-out;
}

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

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: var(--primary);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--gray-600);
    font-size: 14px;
}

/* ==================== TABS ==================== */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--gray-200);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab {
    background: none;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.tab:hover {
    color: var(--primary);
    background: var(--gray-100);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:disabled,
.form-group select:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
    color: var(--gray-500);
}

.form-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--gray-600);
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--gray-600);
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-800);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid;
    animation: slideDown 0.3s ease-out;
}

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

.alert strong {
    font-weight: 700;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left-color: var(--success);
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: var(--danger);
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: var(--warning);
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: var(--info);
}

/* ==================== DASHBOARD ==================== */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
    gap: 15px;
}

header h1 {
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: var(--gray-600);
    flex-wrap: wrap;
}

/* ==================== CARDS ==================== */
.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.card h2 {
    font-size: 20px;
    color: var(--gray-900);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
}

.card h3 {
    font-size: 17px;
    color: var(--gray-800);
    margin: 20px 0 12px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.full-width {
    grid-column: 1 / -1;
}

/* ==================== TABLES ==================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    background: var(--gray-100);
}

th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-300);
    white-space: nowrap;
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--gray-200);
}

tr:hover {
    background: var(--gray-100);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ==================== BADGES ==================== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

.badge-submitted {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-presented {
    background: #d4edda;
    color: #155724;
}

.badge-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.badge-official {
    background: #e7f3ff;
    color: #0066cc;
}

.badge-custom {
    background: #f3e7ff;
    color: #6600cc;
}

/* ==================== TOPIC SELECTION ==================== */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.topic-card {
    position: relative;
}

.topic-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.topic-card label {
    display: block;
    padding: 16px;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    background: white;
    min-height: 100px;
}

.topic-card label:hover {
    border-color: var(--primary);
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.topic-card input[type="radio"]:checked + label {
    border-color: var(--primary);
    background: #f0f3ff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.topic-card strong {
    color: var(--primary);
    font-size: 16px;
    margin-right: 8px;
}

.assigned-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-300);
}

.assigned-user {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    margin: 4px 4px 4px 0;
}

/* ==================== STATS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card h3 {
    margin: 0 0 12px 0;
    font-size: 14px;
    opacity: 0.95;
    font-weight: 600;
}

.stat-card .number {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}

/* ==================== INFO TEXT ==================== */
.info-text {
    color: var(--gray-700);
    font-size: 14px;
    padding: 16px;
    background: #f8f9ff;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin-bottom: 20px;
}

/* ==================== DETAILS/SUMMARY ==================== */
details {
    background: var(--gray-100);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    user-select: none;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: '▸ ';
    display: inline-block;
    transition: transform 0.2s;
}

details[open] summary::before {
    transform: rotate(90deg);
}

details ul {
    margin-top: 12px;
    padding-left: 24px;
}

details li {
    margin-bottom: 8px;
    color: var(--gray-700);
}

/* ==================== REQUIREMENTS ==================== */
.requirements {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 8px;
}

.requirements h3 {
    color: var(--primary);
    margin-top: 16px;
    margin-bottom: 12px;
    font-size: 16px;
}

.requirements h3:first-child {
    margin-top: 0;
}

.requirements ul {
    padding-left: 24px;
}

.requirements li {
    margin-bottom: 8px;
    color: var(--gray-700);
}

/* ==================== FILTER BAR ==================== */
.filter-bar {
    background: var(--gray-100);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.filter-bar form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-bar .form-group {
    margin: 0;
}

.filter-bar .btn {
    white-space: nowrap;
}

/* Editable fields in admin table */
.editable-field {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-block;
    min-width: 60px;
}

.editable-field:hover {
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
}

.editable-field.editing {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
}

.editable-field input {
    border: none;
    background: transparent;
    padding: 2px 4px;
    font-size: inherit;
    font-family: inherit;
    width: 100%;
    min-width: 80px;
}

.editable-field input:focus {
    outline: none;
    background-color: white;
    border: 1px solid #007bff;
    border-radius: 3px;
}

.editable-field .edit-icon {
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-left: 4px;
    font-size: 12px;
    color: #6c757d;
}

.editable-field:hover .edit-icon {
    opacity: 1;
}

/* Admin table improvements */
.admin-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}

.admin-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-table tr:hover {
    background-color: #f8f9fa;
}

.date-divider {
    border-top: 2px solid #007bff !important;
}

.date-divider td {
    padding-top: 12px;
}

/* Success/Error messages */
.edit-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.edit-message.success {
    background-color: #28a745;
}

.edit-message.error {
    background-color: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Admin actions and reload functionality */
.admin-actions {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.reload-status {
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: bold;
    min-width: 200px;
}

.reload-status.loading {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.reload-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.reload-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.reload-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.reload-info h4 {
    margin-top: 0;
    color: #007bff;
}

.reload-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.reload-info li {
    margin: 5px 0;
}

.reload-stats {
    margin-top: 15px;
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 8px;
    font-size: 14px;
}

.reload-stats h5 {
    margin-top: 0;
    color: #495057;
}

.reload-stats .stat-item {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    padding: 5px 0;
    border-bottom: 1px solid #dee2e6;
}

.reload-stats .stat-item:last-child {
    border-bottom: none;
}

.reload-stats .stat-label {
    font-weight: 600;
}

.reload-stats .stat-value {
    color: #007bff;
    font-weight: bold;
}

.affected-users {
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.affected-user {
    padding: 8px 12px;
    margin: 5px 0;
    background-color: #fff3cd;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
    font-size: 13px;
}

.affected-user .user-name {
    font-weight: bold;
    color: #856404;
}

.affected-user .user-topic {
    color: #6c757d;
    font-size: 12px;
}

/* Google Calendar tlačítka */
.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #dadce0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    background: white;
    color: #3c4043;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #5f6368;
    text-decoration: none;
    color: #3c4043;
}

.btn-google .g-icon {
    font-weight: 700;
    color: #4285f4;
    font-size: 16px;
}

.btn-google-secondary {
    margin-left: 0.5rem;
    border-style: dashed;
    background: #f8f9fa;
}

.btn-google-secondary:hover {
    background: #e8eaed;
}

.calendar-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.calendar-actions .btn {
    margin: 0;
}

@media (max-width: 768px) {
    .calendar-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .calendar-actions .btn {
        text-align: center;
    }
}

/* ==================== LOGIN FOOTER ==================== */
.login-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--gray-500);
    font-size: 13px;
}

.login-footer p {
    margin: 4px 0;
}

/* ==================== LOADING SPINNER ==================== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== MOBILE RESPONSIVENESS ==================== */
@media (max-width: 768px) {
    .login-box {
        padding: 30px 20px;
    }
    
    header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    header h1 {
        font-size: 20px;
    }
    
    .user-info {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-bar form {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 20px;
    }
    
    table {
        font-size: 13px;
    }
    
    th, td {
        padding: 8px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .tabs {
        justify-content: flex-start;
    }
    
    .tab {
        font-size: 13px;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card .number {
        font-size: 32px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .table-responsive {
        border-radius: 8px;
    }
    
    /* Horizontal scrolling pro široké tabulky */
    table {
        min-width: 600px;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    body {
        background: white;
    }
    
    .btn, header .user-info, .filter-bar {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* ==================== ACCESSIBILITY ==================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles pro klávesnicovou navigaci */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Přechodové animace */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (volitelné) */
@media (prefers-color-scheme: dark) {
    /* Zde by mohly být dark mode styly, pokud je požadován */
}

/* ==================== UTILITY CLASSES ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
/* ==================== BATCH SAVE SECTION ==================== */
.batch-save-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.batch-save-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.batch-save-info #changes-count {
    font-weight: bold;
    color: var(--primary);
}

.batch-save-info #changes-list {
    font-size: 12px;
    color: #666;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#save-changes-btn:disabled,
#cancel-changes-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#save-changes-btn:not(:disabled) {
    background: var(--success);
    border-color: var(--success);
}

#save-changes-btn:not(:disabled):hover {
    background: #218838;
    border-color: #1e7e34;
}

#cancel-changes-btn:not(:disabled) {
    background: var(--secondary);
    border-color: var(--secondary);
}

#cancel-changes-btn:not(:disabled):hover {
    background: #5a6268;
    border-color: #545b62;
}

.p-0 { padding: 0; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.fw-bold { font-weight: 700; }
.text-muted { color: var(--gray-600); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

/* ==================== CAPTCHA STYLES ==================== */
.captcha-container {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.captcha-question {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
    margin: 0;
}

.captcha-input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    width: 80px;
    text-align: center;
}

.captcha-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.25);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .captcha-input {
        width: 100%;
        max-width: 120px;
        margin: 0 auto;
    }
}

/* ==================== DATE BUTTONS ==================== */
.date-buttons-container {
    margin: 20px 0;
}

.date-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 700px;
}

.date-button-wrapper {
    position: relative;
}

.date-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.date-button {
    display: block;
    padding: 20px 15px;
    border: 3px solid var(--gray-300);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.date-button:hover {
    border-color: var(--primary);
    background: var(--gray-100);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.date-radio:checked + .date-button {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.date-radio:checked + .date-button .date-main,
.date-radio:checked + .date-button .date-day {
    color: white;
}

.date-radio:checked + .date-button .slots-available {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: bold;
}

.date-main {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.date-day {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 8px;
    font-weight: 600;
}

.date-slots {
    font-size: 12px;
    font-weight: 600;
}

.slots-available {
    background: var(--success);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.slots-full {
    background: var(--gray-500);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: bold;
}

.date-button-wrapper:has(.slots-full) .date-button {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--gray-400);
    background: var(--gray-200);
}

.date-button-wrapper:has(.slots-full) .date-radio {
    pointer-events: none;
}

.date-button-wrapper:has(.slots-full) .date-button:hover {
    transform: none;
    border-color: var(--gray-400);
    background: var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.date-button-wrapper:has(.slots-full) .date-main,
.date-button-wrapper:has(.slots-full) .date-day {
    color: var(--gray-500);
}

/* Responsive design pro date buttons */
@media (max-width: 768px) {
    .date-buttons-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .date-button {
        padding: 18px 12px;
        min-height: 90px;
    }
    
    .date-main {
        font-size: 17px;
    }
    
    .date-day {
        font-size: 13px;
    }
    
    .date-slots {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .date-buttons-grid {
        gap: 10px;
    }
    
    .date-button {
        padding: 15px 10px;
        min-height: 85px;
    }
    
    .date-main {
        font-size: 16px;
    }
    
    .date-day {
        font-size: 12px;
    }
}