/**
 * Sidebar Stylesheet
 * Styles for left and right sidebars
 */

/* Left Sidebar - Controls */
.left-sidebar {
    width: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.left-sidebar h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Right Sidebar - Dashboard */
.right-sidebar {
    width: 350px;
    background: white;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.dashboard-header h2 {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Locations Section */
.locations-section {
    padding: 0 20px 20px 20px;
}

.locations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 2px solid #ecf0f1;
}

.locations-header h3 {
    color: #2c3e50;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Location Items */
.location-item {
    background: white;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.location-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #4facfe;
}

.location-item.recent {
    border-left: 4px solid #27ae60;
    background: linear-gradient(90deg, rgba(39, 174, 96, 0.05) 0%, white 100%);
}

.location-item.old {
    border-left: 4px solid #e74c3c;
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.05) 0%, white 100%);
}

.location-name {
    font-weight: bold;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-details {
    font-size: 11px;
    color: #7f8c8d;
    line-height: 1.4;
}

.location-time {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
}

.location-time.recent {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.location-time.old {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* Scrollbar Styling */
.left-sidebar::-webkit-scrollbar,
.right-sidebar::-webkit-scrollbar {
    width: 6px;
}

.left-sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.left-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.right-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.right-sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}