/* Manager Dashboard Styles */
.manager-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-success, .btn-outline {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4361ee;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid #4361ee;
    color: #4361ee;
}

.btn-primary:hover { background: #3a56d4; }
.btn-secondary:hover { background: #5a6268; }
.btn-success:hover { background: #218838; }
.btn-outline:hover { background: #4361ee; color: white; }

/* Week Selector */
.week-selector-container {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.week-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

/* Report Cards */
.reports-container {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.report-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.report-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.employee-name {
    margin: 0;
    color: #1d1d1f;
    font-size: 1.2rem;
}

.report-week {
    color: #6c757d;
    font-size: 0.9rem;
}

.report-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-checkbox {
    width: 18px;
    height: 18px;
}

.report-preview {
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 15px;
}

.report-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.report-stats {
    display: flex;
    gap: 15px;
}

.report-stats .stat {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-size: 0.9rem;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

/* Bulk Actions */
.bulk-actions {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.bulk-actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bulk-buttons {
    display: flex;
    gap: 10px;
}

/* Search Styles */
.advanced-search {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-input-group .search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

/* Search Results */
.search-results {
    margin-top: 20px;
}

.search-result-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
}

.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.search-result-header h4 {
    margin: 0;
    color: #1d1d1f;
}

.search-result-preview {
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 10px;
}

.search-result-preview mark {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 2px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #1d1d1f;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
}

.modal-close:hover {
    color: #1d1d1f;
}

.modal-body {
    padding: 20px;
}

/* Report Detail Styles */
.report-detail .detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.detail-content {
    margin-bottom: 20px;
}

.accomplishments-content {
    line-height: 1.6;
    color: #495057;
}

.accomplishments-content h1,
.accomplishments-content h2,
.accomplishments-content h3 {
    color: #1d1d1f;
    margin-top: 20px;
    margin-bottom: 10px;
}

.accomplishments-content ul,
.accomplishments-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.accomplishments-content li {
    margin-bottom: 5px;
}

.detail-actions {
    display: flex;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-draft {
    background: #fff3cd;
    color: #856404;
}

.status-submitted {
    background: #cce7ff;
    color: #004085;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

/* Responsive Design */
@media (max-width: 768px) {
    .manager-actions {
        flex-direction: column;
    }
    
    .week-selector-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .report-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .action-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
    }
    
    .bulk-actions-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .bulk-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Dark Mode Support for Manager Dashboard */
.dark-mode .report-card {
    background: #2d2d2f;
    border-color: #3a3a3c;
}

.dark-mode .week-selector-container {
    background: #3a3a3c;
}

.dark-mode .advanced-search {
    background: #3a3a3c;
}

.dark-mode .search-result-item {
    background: #2d2d2f;
    border-color: #3a3a3c;
}

.dark-mode .bulk-actions {
    background: #2c3e50;
    border-color: #34495e;
}

.dark-mode .modal-content {
    background: #2d2d2f;
    color: #f5f5f7;
}

.dark-mode .accomplishments-content {
    color: #e9ecef;
}

.dark-mode .accomplishments-content h1,
.dark-mode .accomplishments-content h2,
.dark-mode .accomplishments-content h3 {
    color: #f5f5f7;
}/* Mobile-specific styles */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding: 80px 0;
        margin-top: 60px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Mobile navigation improvements */
    .navbar-nav {
        text-align: center;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    /* Card adjustments for mobile */
    .card {
        margin-bottom: 1rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    /* Calendar mobile view */
    .calendar-day {
        min-height: 80px;
        padding: 0.5rem !important;
    }
    
    .calendar-report-item {
        font-size: 0.7rem;
        padding: 0.25rem !important;
    }
    
    /* Form improvements */
    .form-control-lg {
        font-size: 1rem;
    }
    
    /* Hide less important elements on mobile */
    .d-none-mobile {
        display: none !important;
    }
    
    /* Better touch targets */
    .btn, .nav-link, .form-control {
        min-height: 44px;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* PWA-specific styles */
@media (display-mode: standalone) {
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
    
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .hover-lift:hover {
        transform: none;
    }
    
    .nav-link:hover {
        background-color: transparent;
        transform: none;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .icon-wrapper {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}