/* Taskering CRM - Stránky CSS */

/* ===== Dashboard Stránky ===== */

/* Client Dashboard */
.client-dashboard .stats-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.client-dashboard .stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.client-dashboard .quick-actions .btn {
    transition: all 0.2s ease;
}

.client-dashboard .quick-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Admin Dashboard */
.admin-dashboard .stats-overview {
    /* Používá Bootstrap: mb-4 */
}

.admin-dashboard .recent-activity {
    max-height: 400px;
    /* Používá Bootstrap: overflow-y-auto */
}

/* Solver Dashboard */
.solver-dashboard .task-list {
    max-height: 500px;
    /* Používá Bootstrap: overflow-y-auto */
}

.solver-dashboard .time-tracking {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.75rem;
    /* Používá Bootstrap: p-4 */
}

/* ===== Reports Stránka ===== */
.reports-page .filter-panel {
    /* Používá standardní .card styly - pouze specifické pozadí */
    background: #f8f9fa;
}

.reports-page .chart-section {
    margin-bottom: 2rem;
}

.reports-page .top-users-list {
    max-height: 300px;
    overflow-y: auto;
}

.reports-page .export-buttons {
    margin-top: 1rem;
}

/* ===== Tasks Stránka ===== */
.tasks-page .task-filters {
    /* Používá standardní .card styly - pouze specifické pozadí */
    background: #f8f9fa;
}

.tasks-page .task-status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.tasks-page .task-priority-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.tasks-page .task-actions {
    white-space: nowrap;
}

/* ===== Time Records Stránka ===== */
.time-page .time-filters {
    /* Používá standardní .card styly - pouze specifické pozadí */
    background: #f8f9fa;
}

.time-page .time-entry {
    border-left: 3px solid var(--bs-primary);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.time-page .time-duration {
    font-weight: 600;
    color: var(--bs-primary);
}

/* ===== Users Stránka ===== */
.users-page .user-filters {
    /* Používá standardní .card styly - pouze specifické pozadí */
    background: #f8f9fa;
}

.users-page .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bs-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.users-page .user-role-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* ===== Projects Stránka ===== */
.projects-page .project-filters {
    /* Používá standardní .card styly - pouze specifické pozadí */
    background: #f8f9fa;
}

.projects-page .project-status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.projects-page .project-priority-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.projects-page .project-progress {
    min-width: 100px;
}

/* ===== Projects Page - Statistiky Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    padding: 1.5rem;
    text-align: center;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s;
}

.stat-item:nth-child(2n) {
    border-right: none;
}

.stat-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.stat-item:hover {
    background-color: #f8fafc;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

/* ===== Projects Page - Tasklist sekce ===== */
.tasklist-section {
    border-radius: var(--border-radius-lg, 12px);
    box-shadow: var(--card-shadow, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1));
    border: none !important;
    transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.tasklist-section:hover {
    box-shadow: var(--card-shadow-hover, 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1));
}

.tasklist-section.border-top.border-4.border-primary {
    border-top: 4px solid #3b82f6 !important;
}

/* ===== Filtrovací tlačítka - modernější design ===== */
.btn-group.btn-group-sm.bg-white.shadow-sm {
    background: white;
    box-shadow: var(--card-shadow, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1));
    padding: 0.25rem;
    border-radius: 12px;
}

.btn-group-sm .btn.rounded-2 {
    border-radius: 8px !important;
    border: none !important;
}

.btn-group-sm .btn-check:checked + .btn.rounded-2 {
    background-color: #3b82f6 !important;
    color: white !important;
}

/* ===== List group items bez borderů - pouze pro task items ===== */
.task-item.list-group-item {
    border-left: none !important;
    border-right: none !important;
}

.list-group-flush .task-item.list-group-item {
    border-bottom: 1px solid #f1f5f9 !important;
}

.list-group-flush .task-item.list-group-item:last-child {
    border-bottom: none !important;
}

/* ===== Auth Stránky ===== */
.auth-page .login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-page .login-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 400px;
    width: 100%;
}

.auth-page .login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.auth-page .login-form {
    padding: 2rem;
}

/* ===== Form Stránky ===== */
.form-page .form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-page .form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-page .form-actions {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: right;
}

/* ===== Detail Stránky ===== */
.detail-page .detail-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-page .detail-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-page .detail-actions {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: right;
}

/* ===== Responsive Design - Mobilní optimalizace ===== */
@media (max-width: 992px) {
    /* Sjednocené paddingy pro všechny stránky na mobilu */
    .card-body {
        padding: 0.75rem !important;
    }
    
    .card-header {
        padding: 0.5rem 0.75rem !important;
    }
    
    .card-footer {
        padding: 0.5rem 0.75rem !important;
    }
    
    /* Filter panely */
    .reports-page .filter-panel,
    .tasks-page .task-filters,
    .time-page .time-filters,
    .users-page .user-filters,
    .projects-page .project-filters {
        padding: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Form sekce */
    .form-page .form-section,
    .detail-page .detail-header,
    .detail-page .detail-content {
        padding: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Auth stránky */
    .auth-page .login-box {
        margin: 0.5rem;
        border-radius: 12px;
    }
    
    .auth-page .login-header,
    .auth-page .login-form {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    /* Ještě menší paddingy na velmi malých obrazovkách */
    .card-body {
        padding: 0.5rem !important;
    }
    
    .card-header {
        padding: 0.5rem !important;
    }
    
    .card-footer {
        padding: 0.5rem !important;
    }
}
