/* Global Styles */
body {
    font-family: Tahoma, Arial, sans-serif;
    background-color: #f5f5f5;
}

/* Sidebar */
.sidebar {
    width: initial;
    position: inherit;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: -1px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.5rem 1rem;
}

.sidebar .nav-link:hover {
    color: #007bff;
}

.sidebar .nav-link.active {
    color: #007bff;
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

/* Task Cards */
.task-card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.task-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

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

.task-card .priority-label {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
}

.priority-high {
    background-color: #f8d7da;
    color: #721c24;
}

.priority-medium {
    background-color: #fff3cd;
    color: #856404;
}

.priority-low {
    background-color: #d4edda;
    color: #155724;
}

/* Assignment Cards */
.assignment-card {
    border-right: 4px solid #007bff;
    margin-bottom: 10px;
}

.assignment-pending {
    border-right-color: #6c757d;
}

.assignment-in-progress {
    border-right-color: #17a2b8;
}

.assignment-completed {
    border-right-color: #28a745;
}

/* Timer */
.timer-container {
    display: flex;
    align-items: center;
    gap: 10px;
}


.timer-controls {
    display: flex;
    gap: 5px;
}

/* Comments */
.comment {
    padding: 10px;
    border-radius: 8px;
    background-color: #f8f9fa;
    margin-bottom: 10px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.comment-author {
    font-weight: bold;
}

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

/* Forms */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Task status badges */
.badge-pending {
    background-color: #6c757d;
}

.badge-in-progress {
    background-color: #17a2b8;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        height: auto;
        padding: 0;
    }
    
    .sidebar-sticky {
        height: auto;
    }
    
    main {
        padding: 10px;
    }
}

.card {
    text-align: justify;
}

/* RTL specific adjustments */
[dir="rtl"] .sidebar {
    right: 0;
    left: auto;
    box-shadow: inset 1px 0 0 rgba(0, 0, 0, .1);
}

[dir="rtl"] .assignment-card {
    border-right: none;
    border-left: 4px solid #007bff;
}

[dir="rtl"] .assignment-pending {
    border-left-color: #6c757d;
}

[dir="rtl"] .assignment-in-progress {
    border-left-color: #17a2b8;
}

[dir="rtl"] .assignment-completed {
    border-left-color: #28a745;
} 