body { margin:0; }
.table { width:100%; border-collapse:collapse; background:white; border-radius:8px; overflow:hidden; }
.table th, .table td { padding:12px; border-bottom:1px solid #eee; text-align:left; }

/* Modal Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Sidebar Mobile */
    .sidebar {
        position: fixed !important;
        left: -280px !important;
        transition: left 0.3s ease !important;
        height: 100vh !important;
        z-index: 1001 !important;
    }
    
    .sidebar.show {
        left: 0 !important;
    }
    
    .main-content {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    /* Topbar Mobile */
    .modern-topbar {
        padding: 10px 15px !important;
    }
    
    .modern-search {
        width: 150px !important;
        font-size: 14px !important;
    }
    
    .topbar-right {
        gap: 8px !important;
    }
    
    .user-name {
        display: none !important;
    }
    
    .nav-toggle {
        display: block !important;
    }
    
    /* Dashboard Mobile */
    .dashboard-container {
        padding: 15px !important;
    }
    
    .dashboard-header h2 {
        font-size: 24px !important;
    }
    
    .welcome-message {
        font-size: 14px !important;
    }
    
    /* Stats Row Mobile */
    .stats-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }
    
    .stat-card {
        padding: 15px !important;
        min-height: auto !important;
    }
    
    .stat-card h3 {
        font-size: 20px !important;
    }
    
    .stat-card p {
        font-size: 12px !important;
    }
    
    /* Quick Actions Mobile */
    .quick-actions-top {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    
    .action-btn-top {
        min-width: auto !important;
    }
    
    .action-link {
        padding: 12px 8px !important;
        font-size: 12px !important;
    }
    
    .action-icon {
        font-size: 16px !important;
    }
    
    /* Dashboard Grid Mobile */
    .dashboard-grid {
        display: block !important;
    }
    
    .dashboard-card {
        margin-bottom: 20px !important;
        padding: 15px !important;
    }
    
    .card-header h4 {
        font-size: 16px !important;
    }
    
    /* Tables Mobile */
    .table-responsive {
        overflow-x: auto !important;
    }
    
    .table th, .table td {
        padding: 8px !important;
        font-size: 12px !important;
    }
    
    /* Forms Mobile */
    .form-group {
        margin-bottom: 15px !important;
    }
    
    .form-control {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Buttons Mobile */
    .btn {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
    
    .btn-group .btn {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
    
    /* Modals Mobile */
    .modal-dialog {
        margin: 10px !important;
        max-width: calc(100% - 20px) !important;
    }
    
    .modal-content {
        padding: 15px !important;
    }
    
    /* Task Items Mobile */
    .task-item {
        padding: 10px !important;
        margin-bottom: 8px !important;
    }
    
    .task-item h6 {
        font-size: 14px !important;
    }
    
    .task-item small {
        font-size: 11px !important;
    }
    
    /* Priority badges mobile */
    .priority-badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }
    
    /* Time tracking mobile */
    .time-card {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    /* Calendar mobile */
    .calendar-container {
        padding: 10px !important;
    }
    
    /* Messages mobile */
    .message-list {
        padding: 10px !important;
    }
    
    .message-item {
        padding: 10px !important;
        margin-bottom: 8px !important;
    }
}

/* Tablet Responsive Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .stats-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .quick-actions-top {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    
    .dashboard-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.mobile-overlay.show {
    display: block;
}
    
    .nav-content.collapsed {
        display: none !important;
    }
}

/* Modern Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 2px 4px rgba(0,123,255,0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.btn-outline-primary {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-outline-primary:hover {
    background: #007bff;
    color: white;
}

/* Form Improvements */
.form-control {
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

/* Card Improvements */
.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
/* Dashboard Styles */
.dashboard-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.dashboard-stats {
    display: flex;
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    min-width: 100px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.quick-actions-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.dashboard-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.section-header h4 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.tasks-container {
    max-height: 500px;
    overflow-y: auto;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-item:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
    transform: translateY(-1px);
}

.task-item.selected {
    border-color: #28a745;
    background-color: #f0fff4;
}

.task-content {
    flex: 1;
}

.task-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.task-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 0.85rem;
}

.task-case {
    color: #6c757d;
}

.task-priority {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-low { background: #d4edda; color: #155724; }
.priority-medium { background: #fff3cd; color: #856404; }
.priority-high { background: #f8d7da; color: #721c24; }
.priority-urgent { background: #dc3545; color: white; }

.task-due {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.task-due.overdue { background: #dc3545; color: white; }
.task-due.urgent { background: #fd7e14; color: white; }
.task-due.soon { background: #ffc107; color: #212529; }

.task-actions {
    display: flex;
    gap: 8px;
}

.current-task-panel {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-task-info {
    text-align: center;
    width: 100%;
}

.current-task-info h5 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.timer-display {
    margin: 20px 0;
}

.timer-time {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007bff;
    font-family: 'Courier New', monospace;
}

.timer-status {
    color: #6c757d;
    margin-top: 5px;
    font-size: 0.9rem;
}

.timer-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.no-current-task {
    text-align: center;
    color: #6c757d;
}

.no-current-task i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #6c757d;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.9rem;
    color: #2c3e50;
    margin-bottom: 2px;
}

.activity-time {
    font-size: 0.75rem;
    color: #6c757d;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #28a745;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dashboard-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-card {
        min-width: auto;
    }
    
    .quick-actions-bar {
        justify-content: center;
    }
    
    .task-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .timer-time {
        font-size: 2rem;
    }
}