/* Unified Scheduling Dashboard Styles */

.unified-scheduling-container {
    padding: 20px;
    min-height: calc(100vh - 120px);
}

/* Stat Cards */
.stat-card {
    background: #3A3530;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
    border: 2px solid rgba(184, 115, 51, 0.6);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(184, 115, 51, 0.3);
    border-color: rgba(184, 115, 51, 0.9);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
}

.stat-card.unscheduled .stat-icon {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.stat-card.available .stat-icon {
    background: linear-gradient(135deg, #51cf66, #40c057);
    color: white;
}

.stat-card.conflicts .stat-icon {
    background: linear-gradient(135deg, #ffd43b, #fab005);
    color: white;
}

.stat-card.efficiency .stat-icon {
    background: linear-gradient(135deg, #339af0, #228be6);
    color: white;
}

.stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #E0E0E0;
}

.stat-content p {
    margin: 0;
    color: #B0B0B0;
    font-size: 14px;
}

/* Control Panel */
.control-panel .card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.control-panel .card-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
}

/* Quick Actions */
.quick-actions {
    border-top: 1px solid #3A3530;
    padding-top: 15px;
    margin-top: 15px;
}

/* Scheduling Interface */
.scheduling-interface {
    background: #2D2A28;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    min-height: 600px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 42, 40, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Button Groups */
.btn-group .btn-check:checked+.btn {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

.btn-group .btn-outline-success.btn-check:checked+.btn {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}

/* Work Orders List */
.work-orders-list {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}

.work-order-item {
    padding: 12px 16px;
    border-bottom: 1px solid #3A3530;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #4A4540;
}

.work-order-item:hover {
    background-color: #3A3530;
}

.work-order-item.selected {
    background-color: #4A4540;
    border-left: 4px solid #39FF14;
}

.work-order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.work-order-number {
    font-weight: 600;
    color: #B87333;
    font-size: 0.9rem;
}

.work-order-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.work-order-badges {
    display: flex;
    gap: 4px;
}

.work-order-item-content {
    flex: 1;
    min-width: 0;
}

.work-order-description {
    font-size: 0.9rem;
    color: #B87333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.work-order-meta {
    font-size: 0.8rem;
    color: #B0B0B0;
}

.drag-handle {
    color: #B87333;
    cursor: grab;
    padding: 4px;
}

.drag-handle:hover {
    color: #D4A574;
}