/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-header h3 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
}

.sidebar-header i {
    color: #3b82f6;
    margin-right: 0.5rem;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-menu li {
    margin: 0.25rem 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar-menu li a:hover {
    background-color: #f1f5f9;
    color: #3b82f6;
}

.sidebar-menu li.active a {
    background-color: #eff6ff;
    color: #3b82f6;
    border-right: 3px solid #3b82f6;
}

.sidebar-menu li a i {
    width: 20px;
    margin-right: 0.75rem;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: #ffffff;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.sidebar-toggle:hover {
    background-color: #f1f5f9;
}

.header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.user-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.dropdown-toggle:hover {
    color: #1e293b;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #1e293b;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.5rem 0;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #f1f5f9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar::before {
    content: '👤';
    font-size: 18px;
    color: #64748b;
}

/* Content */
.content {
    padding: 2rem;
    flex: 1;
}

/* Cards */
.card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    display: flex;
    justify-content: between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.card-header p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
}

.card-header i {
    font-size: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

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

/* Metrics */
.metric-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.metric-change {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.metric-change.positive {
    color: #059669;
}

.metric-change.negative {
    color: #dc2626;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0;
    font-weight: 500;
}

.activity-content small {
    color: #64748b;
}

.activity-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.activity-status.success {
    background: #dcfce7;
    color: #166534;
}

.activity-status.pending {
    background: #fef3c7;
    color: #92400e;
}

/* Service Stats */
.service-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-item span:first-child {
    min-width: 100px;
    font-weight: 500;
}

.service-item span:last-child {
    min-width: 40px;
    text-align: right;
    font-weight: 600;
    color: #3b82f6;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #3b82f6;
    transition: width 0.3s ease;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.action-btn:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Text Colors */
.text-primary { color: #3b82f6; }
.text-success { color: #059669; }
.text-warning { color: #d97706; }
.text-danger { color: #dc2626; }
.text-info { color: #0891b2; }

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border: 1px solid #3b82f6;
}

.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-warning {
    background: #f59e0b;
    color: white;
    border: 1px solid #f59e0b;
}

.btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Forms */
.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

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

.form-control-sm {
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group small {
    display: block;
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Checkboxes and Toggles */
.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: #f9fafb;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #3b82f6;
    border-color: #3b82f6;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #3b82f6;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Settings Specific Styles */
.settings-container {
    max-width: 1200px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.department-item {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.department-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.department-header h4 {
    color: #1e293b;
    font-size: 1rem;
    margin: 0;
}

.department-header i {
    margin-right: 0.5rem;
    color: #64748b;
}

.department-details p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: #64748b;
}

.settings-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Call Logs Styles */
.call-logs-container {
    max-width: 1400px;
}

.filters-card {
    margin-bottom: 1.5rem;
}

.filters-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
}

.filter-group {
    min-width: 150px;
}

.calls-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.call-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.call-item:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
}

.call-info {
    flex: 1;
}

.call-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.room-number {
    font-weight: 600;
    color: #1e293b;
    background: #eff6ff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.call-time {
    color: #64748b;
    font-size: 0.875rem;
}

.call-duration {
    color: #059669;
    font-weight: 500;
    font-size: 0.875rem;
}

.call-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.department-tag {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.department-tag.room-service { background: #fef3c7; color: #92400e; }
.department-tag.housekeeping { background: #dcfce7; color: #166534; }
.department-tag.concierge { background: #e0e7ff; color: #3730a3; }
.department-tag.tech-support { background: #dbeafe; color: #1d4ed8; }
.department-tag.maintenance { background: #fed7d7; color: #b91c1c; }
.department-tag.valet { background: #f3e8ff; color: #7c3aed; }

.call-type {
    color: #64748b;
    font-size: 0.875rem;
}

.call-summary {
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.4;
}

.call-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.call-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

.call-status.completed { background: #dcfce7; color: #166534; }
.call-status.in-progress { background: #fef3c7; color: #92400e; }
.call-status.failed { background: #fed7d7; color: #b91c1c; }

.call-buttons {
    display: flex;
    gap: 0.25rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #3b82f6;
    color: white;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

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

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

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

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

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

.close:hover {
    color: #1e293b;
}

.modal-body {
    padding: 1.5rem;
}

.audio-player {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.play-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-timeline {
    flex: 1;
}

.timeline-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.timeline-progress {
    height: 100%;
    background: #3b82f6;
    border-radius: 2px;
    width: 30%;
}

.timeline-time {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-control input[type="range"] {
    width: 80px;
}

.transcript-section {
    margin-top: 1.5rem;
}

.transcript-section h4 {
    color: #1e293b;
    margin-bottom: 1rem;
}

.transcript-content {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    max-height: 300px;
    overflow-y: auto;
}

/* Analytics Styles */
.analytics-container {
    max-width: 1400px;
}

.analytics-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.time-range-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.filter-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.date-picker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.date-picker span {
    color: #64748b;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.chart-card {
    grid-column: span 2;
}

.chart-container {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
    color: #64748b;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.department-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dept-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.dept-item:last-child {
    border-bottom: none;
}

.dept-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dept-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.dept-icon.room-service { background: #f59e0b; }
.dept-icon.housekeeping { background: #059669; }
.dept-icon.concierge { background: #3b82f6; }
.dept-icon.tech-support { background: #0891b2; }
.dept-icon.maintenance { background: #dc2626; }
.dept-icon.valet { background: #7c3aed; }

.dept-details h4 {
    margin: 0;
    color: #1e293b;
    font-size: 0.875rem;
}

.dept-details p {
    margin: 0;
    color: #64748b;
    font-size: 0.75rem;
}

.dept-percentage {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dept-percentage span {
    font-weight: 600;
    color: #1e293b;
    min-width: 40px;
    text-align: right;
}

.mini-chart {
    width: 60px;
    height: 20px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: end;
}

.mini-chart .bar {
    width: 100%;
    background: #3b82f6;
    border-radius: 10px 10px 0 0;
    transition: height 0.3s ease;
}

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

.metric-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.metric-info h4 {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0.25rem 0;
}

.metric-info .metric-change {
    font-size: 0.75rem;
}

.hours-chart {
    display: flex;
    justify-content: space-between;
    align-items: end;
    height: 120px;
    gap: 0.25rem;
}

.hour-bar {
    flex: 1;
    background: #3b82f6;
    border-radius: 4px 4px 0 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
    transition: background-color 0.2s ease;
}

.hour-bar:hover {
    background: #2563eb;
}

.hour-value {
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0;
}

.hour-label {
    position: absolute;
    bottom: -1.5rem;
    font-size: 0.65rem;
    color: #64748b;
    white-space: nowrap;
}

.floor-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.floor-btn {
    padding: 0.375rem 0.75rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.floor-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.floor-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.room-heatmap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.room-item {
    aspect-ratio: 1;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.room-item.no-activity {
    background: #f8fafc;
    color: #94a3b8;
}

.room-item.low-activity {
    background: #dbeafe;
    color: #1d4ed8;
}

.room-item.medium-activity {
    background: #bfdbfe;
    color: #1e40af;
}

.room-item.high-activity {
    background: #3b82f6;
    color: white;
}

.room-number {
    font-weight: 600;
}

.call-count {
    font-size: 0.65rem;
    opacity: 0.8;
}

.heatmap-legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
}

.color-indicator {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.issues-table {
    display: flex;
    flex-direction: column;
}

.table-header, .table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    align-items: center;
}

.table-header {
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
}

.table-row {
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.table-row:last-child {
    border-bottom: none;
}

.issue-type {
    font-weight: 500;
    color: #1e293b;
}

.issue-count {
    font-weight: 600;
    color: #3b82f6;
}

.issue-dept {
    color: #64748b;
}

.resolution-time {
    color: #374151;
}

.trend {
    font-weight: 500;
    text-align: center;
}

.trend.positive {
    color: #059669;
}

.trend.negative {
    color: #dc2626;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .dashboard-grid,
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-card {
        grid-column: span 1;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .departments-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 1rem;
    }
    
    .header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .call-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .call-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .time-range-selector {
        justify-content: center;
    }
    
    .filter-btn {
        flex: 1;
        text-align: center;
    }
    
    .hours-chart {
        height: 80px;
    }
    
    .table-header, .table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .table-header span, .table-row span {
        padding: 0.25rem 0;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .metric-number {
        font-size: 2rem;
    }
    
    .user-profile span {
        display: none;
    }
    
    .quick-actions {
        grid-template-columns: 1fr 1fr;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .room-heatmap {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }
    
    .heatmap-legend {
        justify-content: center;
    }
}

/* Team Page Styles */
.team-container {
    max-width: 1400px;
}

.team-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 200px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.active {
    background: #dcfce7;
    color: #059669;
}

.stat-icon.admin {
    background: #fef3c7;
    color: #d97706;
}

.stat-info h4 {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.team-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.team-member-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.team-member-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.team-member-card.add-member {
    border: 2px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    min-height: 200px;
}

.team-member-card.add-member:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.add-member-content {
    text-align: center;
    color: #64748b;
}

.add-member-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #3b82f6;
}

.add-member-content h4 {
    margin: 0.5rem 0;
    color: #1e293b;
}

.member-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
}

.status-indicator.online {
    background: #059669;
}

.status-indicator.away {
    background: #f59e0b;
}

.status-indicator.offline {
    background: #64748b;
}

.member-info h4 {
    margin: 0 0 0.25rem 0;
    color: #1e293b;
    font-weight: 600;
}

.member-role {
    color: #3b82f6;
    font-weight: 500;
    font-size: 0.875rem;
    margin: 0 0 0.25rem 0;
}

.member-email {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0 0 1rem 0;
}

.member-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.member-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
}

.member-stats .stat i {
    width: 12px;
}

.member-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn-icon.danger {
    color: #dc2626;
}

.btn-icon.danger:hover {
    background: #dc2626;
    color: white;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .team-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Call logs specific styles */
.no-calls-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #64748b;
}

.no-calls-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.no-calls-message h3 {
    margin-bottom: 0.5rem;
    color: #475569;
}

.no-calls-message p {
    margin: 0;
}

.no-transcript {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.no-transcript p {
    margin-bottom: 1rem;
}

.no-transcript ul {
    margin: 0;
    padding-left: 1.5rem;
}

.no-transcript li {
    margin: 0.25rem 0;
}

/* Polling status indicator */
.polling-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #64748b;
    margin-right: 1rem;
}

.polling-status i {
    font-size: 0.75rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}