/* Professional Custom Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Navigation active state */
.nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #3b82f6;
}

/* Card styles */
.card {
    @apply bg-white rounded-xl shadow-sm border border-gray-100 p-6 transition-all duration-300;
}

.card:hover {
    @apply shadow-md;
}

/* Stat card */
.stat-card {
    @apply bg-gradient-to-br rounded-xl shadow-lg p-6 text-white relative overflow-hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Button styles */
.btn {
    @apply px-4 py-2 rounded-lg font-medium transition-all duration-200 inline-flex items-center space-x-2;
}

.btn-primary {
    @apply bg-blue-600 text-white hover:bg-blue-700 shadow-lg shadow-blue-500/30 hover:shadow-xl;
}

.btn-success {
    @apply bg-green-600 text-white hover:bg-green-700 shadow-lg shadow-green-500/30;
}

.btn-danger {
    @apply bg-red-600 text-white hover:bg-red-700 shadow-lg shadow-red-500/30;
}

.btn-secondary {
    @apply bg-gray-600 text-white hover:bg-gray-700;
}

.btn-outline {
    @apply border-2 border-gray-300 text-gray-700 hover:bg-gray-50;
}

/* Badge styles */
.badge {
    @apply px-3 py-1 rounded-full text-xs font-semibold inline-flex items-center space-x-1;
}

.badge-success {
    @apply bg-green-100 text-green-800;
}

/* ==================== ENHANCED FEATURES STYLES ==================== */

/* Global Search */
.global-search {
    @apply mb-6;
}

.search-container {
    @apply relative;
}

.search-input {
    @apply w-full max-w-2xl px-12 py-3 border-2 border-gray-200 rounded-xl focus:border-blue-500 focus:ring-4 focus:ring-blue-100 transition-all duration-200 text-base;
}

.search-icon {
    @apply absolute left-4 top-1/2 transform -translate-y-1/2 text-gray-400 text-xl;
}

.search-results {
    @apply absolute top-full left-0 right-0 max-w-2xl mt-2 bg-white rounded-xl shadow-2xl border border-gray-200 max-h-96 overflow-y-auto z-50;
}

.search-results-content {
    @apply p-2;
}

.result-section {
    @apply mb-2 last:mb-0;
}

.result-header {
    @apply px-3 py-2 text-xs font-bold text-gray-500 uppercase tracking-wide;
}

.result-item {
    @apply flex items-center space-x-3 px-3 py-2 rounded-lg hover:bg-gray-50 cursor-pointer transition-colors duration-150;
}

.result-item i {
    @apply w-8 h-8 flex items-center justify-center rounded-lg;
}

.result-item mark {
    @apply bg-yellow-200 text-gray-900 font-semibold px-0.5 rounded;
}

/* Advanced Table Styles */
.advanced-table {
    @apply bg-white rounded-xl shadow-sm border border-gray-100 overflow-hidden;
}

.table-controls {
    @apply flex flex-wrap items-center gap-4 p-4 bg-gray-50 border-b border-gray-200;
}

.search-box {
    @apply relative flex-1 min-w-64;
}

.search-box i {
    @apply absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400;
}

.search-box input {
    @apply w-full pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500;
}

.filter-dropdown, .export-dropdown {
    @apply relative;
}

.dropdown-menu {
    @apply absolute top-full right-0 mt-2 bg-white rounded-lg shadow-xl border border-gray-200 py-2 min-w-48 z-40;
}

.dropdown-menu button {
    @apply w-full text-left px-4 py-2 hover:bg-gray-50 flex items-center space-x-2 text-gray-700 transition-colors;
}

.dropdown-menu i {
    @apply text-gray-400 w-5;
}

.filter-panel {
    @apply absolute top-full right-0 mt-2 bg-white rounded-lg shadow-xl border border-gray-200 p-4 min-w-80 z-40;
}

.table-wrapper {
    @apply overflow-x-auto;
}

.data-table {
    @apply w-full;
}

.data-table thead th {
    @apply bg-gradient-to-r from-gray-50 to-gray-100 px-6 py-4 text-left text-xs font-bold text-gray-700 uppercase tracking-wider cursor-pointer hover:bg-gray-200 transition-colors;
}

.data-table thead th .sort-icon {
    @apply ml-2 text-gray-400 text-xs;
}

.data-table tbody tr {
    @apply border-b border-gray-100 hover:bg-blue-50 transition-colors duration-150;
}

.data-table tbody td {
    @apply px-6 py-4 text-sm text-gray-800;
}

.action-cell {
    @apply flex items-center space-x-2;
}

.action-btn {
    @apply p-2 rounded-lg transition-all duration-200 hover:scale-110;
}

.action-btn.edit {
    @apply text-blue-600 hover:bg-blue-50;
}

.action-btn.delete {
    @apply text-red-600 hover:bg-red-50;
}

.action-btn.view {
    @apply text-green-600 hover:bg-green-50;
}

/* Pagination */
.pagination {
    @apply flex items-center justify-between px-4 py-3 bg-gray-50 border-t border-gray-200;
}

.pagination-info {
    @apply text-sm text-gray-700;
}

.pagination-buttons {
    @apply flex items-center space-x-2;
}

.pagination-buttons button {
    @apply px-3 py-1 rounded-lg border border-gray-300 hover:bg-white transition-colors text-sm font-medium;
}

.pagination-buttons button:disabled {
    @apply opacity-50 cursor-not-allowed hover:bg-transparent;
}

.pagination-buttons button.active {
    @apply bg-blue-600 text-white border-blue-600;
}

.pagination-buttons span {
    @apply px-2 text-gray-500;
}

/* Enhanced Stat Cards */
.stat-card-animated {
    animation: slideInUp 0.5s ease-out forwards;
    opacity: 0;
}

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

.stats-grid {
    @apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8;
}

.stat-card {
    @apply bg-white rounded-xl shadow-lg border-l-4 p-6 hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    @apply w-16 h-16 rounded-xl flex items-center justify-center text-white text-2xl shadow-lg;
}

.stat-content {
    flex: 1;
}

.stat-label {
    @apply text-sm text-gray-600 font-medium mb-1;
}

.stat-value {
    @apply text-3xl font-bold text-gray-900 mb-1;
}

.stat-change {
    @apply text-xs font-semibold flex items-center space-x-1;
}

.stat-change.positive {
    @apply text-green-600;
}

.stat-change.negative {
    @apply text-red-600;
}

.stat-change.neutral {
    @apply text-gray-600;
}

.stat-change.warning {
    @apply text-orange-600;
}

.stat-change i {
    @apply text-xs;
}

/* Card Header */
.card-header {
    @apply flex items-center justify-between mb-6 pb-4 border-b border-gray-200;
}

.btn-group {
    @apply flex space-x-1 bg-gray-100 rounded-lg p-1;
}

.btn-icon {
    @apply px-3 py-1 text-sm font-medium text-gray-600 rounded-md hover:bg-white hover:text-blue-600 transition-all duration-200;
}

.btn-icon.active {
    @apply bg-white text-blue-600 shadow-sm;
}

/* Quick Actions */
.quick-actions {
    @apply grid grid-cols-2 gap-3;
}

.quick-action-btn {
    @apply flex flex-col items-center justify-center p-4 bg-gradient-to-br from-blue-500 to-blue-600 text-white rounded-xl hover:shadow-lg transform hover:scale-105 transition-all duration-200 font-medium text-sm space-y-2;
}

.quick-action-btn i {
    @apply text-2xl;
}

/* Activity Feed */
.activity-feed {
    @apply space-y-3 max-h-96 overflow-y-auto;
}

.activity-item {
    @apply flex items-start space-x-3 p-3 rounded-lg hover:bg-gray-50 transition-colors duration-150;
}

.activity-icon {
    @apply w-10 h-10 rounded-full flex items-center justify-center text-white flex-shrink-0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    @apply text-sm font-medium text-gray-900 truncate;
}

.activity-time {
    @apply text-xs text-gray-500 mt-1;
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Empty States */
.empty-state {
    @apply flex flex-col items-center justify-center py-12 text-center text-gray-500;
}

.empty-state i {
    @apply text-6xl mb-4 text-gray-300;
}

.empty-state p {
    @apply text-lg mb-2;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: currentColor;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

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

/* Responsive Utilities */
@media (max-width: 768px) {
    .stat-card {
        @apply flex-col text-center;
    }
    
    .stat-icon {
        @apply mx-auto;
    }
    
    .search-input {
        @apply max-w-full;
    }
    
    .table-controls {
        @apply flex-col items-stretch;
    }
    
    .search-box {
        @apply w-full;
    }
}

/* Chart Containers */
canvas {
    @apply w-full;
}

/* Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Focus States */
*:focus {
    outline: none;
}

input:focus, textarea:focus, select:focus {
    @apply ring-4 ring-blue-100 border-blue-500;
}

/* Hidden class helper */
.hidden {
    display: none !important;
}

/* ==================== PROFESSIONAL STAT CARDS (MODERN STYLE) ==================== */

/* Stats Grid - 3 columns layout */
.stats-grid-professional {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Individual Stat Card */
.professional-stat-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.professional-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Icon at Top */
.stat-icon-top {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-center;
    margin: 0 auto 1.25rem;
    font-size: 28px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon-top i {
    font-size: 28px;
}

/* Number */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

/* Label */
.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

/* Sublabel */
.stat-sublabel {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 400;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-grid-professional {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1rem;
    }
    
    .professional-stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-icon-top {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .stats-grid-professional {
        grid-template-columns: 1fr;
    }
}

/* ==================== PROFESSIONAL ATTENDANCE TABLE ==================== */

/* Filters Bar */
.professional-filters-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
}

.professional-date-input,
.professional-select {
    padding: 0.625rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    transition: all 0.2s;
}

.professional-date-input:focus,
.professional-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.professional-filter-btn {
    padding: 0.625rem 1.25rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.professional-filter-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* Table Card */
.professional-table-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Table Wrapper */
.professional-table-wrapper {
    overflow-x: auto;
}

/* Professional Table */
.professional-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.professional-table thead {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.professional-table thead th {
    padding: 1rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    white-space: nowrap;
}

.professional-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s;
}

.professional-table tbody tr:hover {
    background-color: #f8fafc;
}

.professional-table tbody tr:last-child {
    border-bottom: none;
}

.professional-table tbody td {
    padding: 1.25rem;
    font-size: 0.875rem;
    color: #1e293b;
    vertical-align: middle;
}

/* Employee Cell */
.employee-cell {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.employee-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
}

.employee-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.employee-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.875rem;
}

.employee-email {
    font-size: 0.75rem;
    color: #64748b;
}

/* Time Badge */
.time-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #f1f5f9;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

/* Duration Text */
.duration-text {
    font-weight: 500;
    color: #0f172a;
}

/* Professional Status Badge */
.professional-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.professional-status-badge i {
    font-size: 0.875rem;
}

/* Status Colors */
.status-present {
    background: #d1fae5;
    color: #065f46;
}

.status-absent {
    background: #fee2e2;
    color: #991b1b;
}

.status-late {
    background: #fed7aa;
    color: #9a3412;
}

.status-excuse {
    background: #dbeafe;
    color: #1e40af;
}

.status-leave {
    background: #e9d5ff;
    color: #6b21a8;
}

/* Notes Text */
.notes-text {
    color: #64748b;
    font-size: 0.875rem;
}

/* Action Button */
.professional-action-btn {
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 1rem;
}

.professional-action-btn:hover {
    background: #eff6ff;
    color: #2563eb;
}

/* Responsive Table */
@media (max-width: 1024px) {
    .professional-table {
        font-size: 0.8125rem;
    }
    
    .professional-table thead th,
    .professional-table tbody td {
        padding: 0.875rem;
    }
    
    .employee-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.9375rem;
    }
}

@media (max-width: 768px) {
    .professional-table-wrapper {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .professional-table {
        min-width: 900px;
    }
    
    .professional-filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .professional-date-input,
    .professional-select,
    .professional-filter-btn {
        width: 100%;
    }
}

/* ==================== LEAVE REQUESTS SPECIFIC STYLES ==================== */

.leave-type-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #eff6ff;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e40af;
}

.professional-action-btn.approve {
    color: #10b981;
}

.professional-action-btn.approve:hover {
    background: #d1fae5;
}

.professional-action-btn.reject {
    color: #ef4444;
}

.professional-action-btn.reject:hover {
    background: #fee2e2;
}

.status-pending {
    background: #fed7aa;
    color: #9a3412;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Professional Empty State */
.professional-empty-state {
    background: white;
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.professional-empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.professional-empty-state p {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* ==================== DAILY EFFORTS SPECIFIC STYLES ==================== */

.bulletin-cell {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bulletin-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.priority-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

.priority-high {
    background: #fee2e2;
    color: #991b1b;
}

.priority-medium {
    background: #fef3c7;
    color: #92400e;
}

.priority-low {
    background: #e0e7ff;
    color: #3730a3;
}

.effort-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-blocked {
    background: #fee2e2;
    color: #991b1b;
}

.status-in-progress {
    background: #dbeafe;
    color: #1e40af;
}

.status-hold {
    background: #fed7aa;
    color: #9a3412;
}

.status-review {
    background: #e9d5ff;
    color: #6b21a8;
}

.category-tag {
    display: inline-block;
    padding: 0.375rem 0.625rem;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
}

.metric-value {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.875rem;
}

.rate-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.professional-action-btn.edit {
    color: #f59e0b;
}

.professional-action-btn.edit:hover {
    background: #fef3c7;
}

.professional-action-btn.delete {
    color: #ef4444;
}

.professional-action-btn.delete:hover {
    background: #fee2e2;
}

.badge-warning {
    @apply bg-yellow-100 text-yellow-800;
}

.badge-danger {
    @apply bg-red-100 text-red-800;
}

.badge-info {
    @apply bg-blue-100 text-blue-800;
}

.badge-secondary {
    @apply bg-gray-100 text-gray-800;
}

/* Table styles */
.data-table {
    @apply w-full;
}

.data-table thead {
    @apply bg-gray-50 border-b-2 border-gray-200;
}

.data-table th {
    @apply px-6 py-4 text-left text-xs font-bold text-gray-700 uppercase tracking-wider;
}

.data-table td {
    @apply px-6 py-4 text-sm text-gray-900;
}

.data-table tbody tr {
    @apply border-b border-gray-100 hover:bg-gray-50 transition-colors;
}

/* Form inputs */
.form-input {
    @apply w-full px-4 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all;
}

.form-input:focus {
    @apply shadow-lg;
}

.form-label {
    @apply block text-sm font-semibold text-gray-700 mb-2;
}

.form-select {
    @apply form-input appearance-none bg-white cursor-pointer bg-no-repeat;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.form-group {
    @apply relative;
}

/* Form validation states */
.form-input.border-red-500 {
    @apply border-red-500 focus:ring-red-500;
}

.form-input.border-green-500 {
    @apply border-green-500 focus:ring-green-500;
}

.error-message {
    @apply text-red-500 text-xs mt-1 flex items-center space-x-1;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Radio and checkbox custom styles */
input[type="radio"] {
    @apply w-4 h-4 text-blue-600 focus:ring-blue-500 border-gray-300;
}

input[type="checkbox"] {
    @apply w-4 h-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded;
}

/* Radio button groups */
input[type="radio"]:checked + div,
input[type="radio"]:checked + label {
    @apply text-blue-600;
}

label:has(input[type="radio"]:checked) {
    @apply border-blue-500 bg-blue-50;
}

/* Helper text */
.form-helper {
    @apply text-xs text-gray-500 mt-1 flex items-center space-x-1;
}

/* Form sections */
.form-section {
    @apply p-4 bg-gray-50 rounded-lg border border-gray-200 space-y-4;
}

.form-section-title {
    @apply font-semibold text-gray-700 mb-3 flex items-center space-x-2;
}

/* Modal animations */
.modal-enter {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Toast notifications */
.toast {
    @apply px-6 py-4 rounded-lg shadow-xl flex items-center space-x-3 min-w-[300px] max-w-md;
    animation: slideIn 0.3s ease-out;
}

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

.toast-success {
    @apply bg-green-600 text-white;
}

.toast-error {
    @apply bg-red-600 text-white;
}

.toast-info {
    @apply bg-blue-600 text-white;
}

.toast-warning {
    @apply bg-yellow-600 text-white;
}

/* Chart container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Loading spinner */
.spinner {
    @apply inline-block w-5 h-5 border-2 border-white border-t-transparent rounded-full;
    animation: spin 0.8s linear infinite;
}

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

/* Empty state */
.empty-state {
    @apply text-center py-12;
}

.empty-state i {
    @apply text-6xl text-gray-300 mb-4;
}

.empty-state p {
    @apply text-gray-500 text-lg;
}

/* Progress bar */
.progress-bar {
    @apply h-2 bg-gray-200 rounded-full overflow-hidden;
}

.progress-bar-fill {
    @apply h-full bg-blue-600 rounded-full transition-all duration-500;
}

/* Skeleton loading */
.skeleton {
    @apply bg-gray-200 rounded animate-pulse;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Hover effects */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Grid layout helpers */
.grid-cards {
    @apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6;
}

/* Responsive utilities */
@media (max-width: 768px) {
    #sidebar {
        transform: translateX(-100%);
    }
    
    #sidebar.open {
        transform: translateX(0);
    }
    
    .ml-64 {
        margin-left: 0;
    }
}

/* Custom animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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

/* Status indicators */
.status-dot {
    @apply w-2 h-2 rounded-full inline-block mr-2;
}

.status-dot.online {
    @apply bg-green-500;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.status-dot.offline {
    @apply bg-gray-400;
}

.status-dot.away {
    @apply bg-yellow-500;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2);
}

/* ==================== Professional Bulletin Cards ==================== */
.professional-bulletin-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid #f0f0f0;
}

.professional-bulletin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.bulletin-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.bulletin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.bulletin-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
    flex: 1;
    margin: 0;
}

.bulletin-priority-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.priority-high {
    background: #fee2e2;
    color: #dc2626;
}

.priority-medium {
    background: #fef3c7;
    color: #d97706;
}

.priority-low {
    background: #e5e7eb;
    color: #6b7280;
}

.bulletin-date {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

/* Bulletins grid layout */
.bulletins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .bulletins-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== Professional Daily Efforts Table ==================== */
.efforts-table-professional {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.efforts-table-professional thead {
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
}

.efforts-table-professional th {
    padding: 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

.efforts-table-professional th:first-child {
    padding-left: 1.5rem;
}

.efforts-table-professional td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.875rem;
}

.efforts-table-professional td:first-child {
    padding-left: 1.5rem;
}

.efforts-table-professional tbody tr {
    transition: all 0.2s ease;
}

.efforts-table-professional tbody tr:hover {
    background: #f8fafc;
}

.efforts-table-professional tbody tr:last-child td {
    border-bottom: none;
}

.effort-metric-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.metric-tables {
    background: #eff6ff;
    color: #1e40af;
}

.metric-cells {
    background: #f0fdf4;
    color: #15803d;
}

.metric-hours {
    background: #faf5ff;
    color: #7c3aed;
}

.metric-rate {
    background: #fff7ed;
    color: #c2410c;
}

.bulletin-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.bulletin-tag-priority {
    padding: 0.125rem 0.5rem;
    border-radius: 6px;
    font-size: 0.625rem;
    font-weight: 600;
    margin-left: 0.5rem;
}
