/* Checklix Web App Styles */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Card styling */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}

/* Task tabs styling */
.nav-tabs .nav-link {
    color: #495057;
    font-weight: 500;
    border-radius: 0;
    padding: 10px 15px;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
    font-weight: 600;
}

.nav-tabs .nav-link:hover:not(.active) {
    background-color: #f8f9fa;
    border-color: transparent;
}

/* Task list styling */
.list-group-item {
    border-left: none;
    border-right: none;
    padding: 15px;
    transition: background-color 0.2s;
}

.list-group-item:hover {
    background-color: #f1f8ff;
    cursor: pointer;
}

.list-group-item:first-child {
    border-top: none;
}

/* Completed task styling */
.completed-task {
    background-color: #f8f9fa;
    border-left: 3px solid #28a745 !important;
}

.completed-task .task-item-title {
    text-decoration: line-through;
    color: #6c757d;
}

/* Overdue task styling */
.overdue-task {
    background-color: #fff8f8;
    border-left: 3px solid #dc3545 !important;
}

.overdue-task .task-item-due {
    color: #dc3545;
    font-weight: 500;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-item-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.task-item-due {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Clock status styling */
#clock-status {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.clock-in {
    color: #28a745;
}

.clock-out {
    color: #dc3545;
}

/* Button styling */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Location display */
#location-coords {
    font-size: 0.9rem;
}

/* Task status badges */
.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

/* Tab content styling */
.tab-content {
    padding-top: 15px;
}

/* Empty state styling */
.text-center.py-4 i {
    color: #dee2e6;
    margin-bottom: 15px;
}

/* Overdue tasks styling */
#overdue-task-list .task-item-due {
    color: #dc3545;
    font-weight: 500;
}

/* Completed tasks styling */
#completed-task-list .task-item-title {
    text-decoration: line-through;
    color: #6c757d;
}

/* Navbar styling */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
}

/* Login screen */
#login-screen {
    max-width: 500px;
    margin: 0 auto;
    padding-top: 100px;
}

#bitrix-login-btn {
    padding: 12px 24px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    #clock-status {
        font-size: 1.5rem;
    }
    
    #login-screen {
        padding-top: 50px;
    }
}