/* Custom styles for SEN Cable Management Application */

/* General styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
}

.text-sen {
    color: #007bff;
}

.bg-sen {
    background-color: #007bff;
    color: white;
}

/* User Management Styles */
.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-lg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-initials {
    font-weight: bold;
}

.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -25px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--bs-primary);
}

.timeline-marker::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    width: 2px;
    height: 30px;
    background-color: #e9ecef;
}

.timeline-item:last-child .timeline-marker::before {
    display: none;
}

.timeline-title {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.timeline-text {
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* Sidebar styles */
.sidebar {
    min-height: calc(100vh - 56px);
    background-color: #343a40;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.75rem 1.25rem;
}

.sidebar .nav-link:hover {
    color: rgba(255, 255, 255, 1);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(0, 123, 255, 0.3);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
}

/* Card styles */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
    font-weight: 500;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    margin: 0.25rem 0;
}

.status-good {
    background-color: #28a745;
    color: white;
}

.status-watch {
    background-color: #ffc107;
    color: #212529;
}

.status-critical {
    background-color: #dc3545;
    color: white;
}

.status-pending {
    background-color: #17a2b8;
    color: white;
}

.status-ongoing {
    background-color: #ffc107;
    color: #212529;
}

.status-completed {
    background-color: #28a745;
    color: white;
}

/* Dashboard styles */
.dashboard-stat-card {
    height: 100%;
    transition: transform 0.2s;
}

.dashboard-stat-card:hover {
    transform: translateY(-5px);
}

.dashboard-stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.dashboard-chart-container {
    height: 300px;
    position: relative;
}

/* Map styles */
#cableMap {
    height: 600px;
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Form styles */
.form-label {
    font-weight: 500;
}

.required-field::after {
    content: '*';
    color: #dc3545;
    margin-left: 0.25rem;
}

/* Comment styles */
.comment-container {
    max-height: 400px;
    overflow-y: auto;
}

.comment {
    border-left: 3px solid #007bff;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.comment-header {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.comment-timestamp {
    font-size: 0.8rem;
    color: #6c757d;
}

/* List styles */
.list-item-action {
    border-left: 3px solid transparent;
    transition: background-color 0.2s;
}

.list-item-action:hover {
    background-color: rgba(0, 123, 255, 0.05);
    border-left-color: #007bff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-chart-container {
        height: 250px;
    }
    
    #cableMap {
        height: 400px;
    }
}
