/* Shared-ToDo Custom Styles */

:root {
    --primary-color: #4a90d9;
    --primary-dark: #3a7bc8;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    background-color: var(--light-bg);
    min-height: 100vh;
}

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

.navbar-brand {
    font-weight: 600;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

/* Task Status Colors */
.status-not-started {
    background-color: #e9ecef;
    color: #495057;
}

.status-in-progress {
    background-color: #cce5ff;
    color: #004085;
}

.status-blocked {
    background-color: #f8d7da;
    color: #721c24;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-cancelled {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Priority Colors */
.priority-low {
    border-left: 4px solid #28a745;
}

.priority-medium {
    border-left: 4px solid #ffc107;
}

.priority-high {
    border-left: 4px solid #fd7e14;
}

.priority-urgent {
    border-left: 4px solid #dc3545;
}

/* Task List */
.task-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

.task-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.task-title {
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

.task-title:hover {
    color: var(--primary-color);
}

.task-meta {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

/* User Status */
.user-pending {
    background-color: #fff3cd;
    color: #856404;
}

.user-active {
    background-color: #d4edda;
    color: #155724;
}

.user-disabled {
    background-color: #f8d7da;
    color: #721c24;
}

/* Landing Page */
.landing-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.landing-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.landing-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* History Timeline */
.history-item {
    border-left: 2px solid var(--border-color);
    padding-left: 1rem;
    margin-left: 0.5rem;
    padding-bottom: 1rem;
}

.history-item:last-child {
    padding-bottom: 0;
}

.history-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: -7px;
    top: 0.25rem;
}

/* Comment */
.comment {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
    color: #333;
}

.comment-time {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

/* Subtasks */
.subtask-list {
    margin-left: 1.5rem;
    border-left: 2px solid var(--border-color);
    padding-left: 1rem;
}

/* Badge styling */
.badge {
    font-weight: 500;
}

/* Status Action Buttons */
.status-actions {
    padding: 1rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.status-actions h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.status-actions .btn {
    font-weight: 500;
    transition: all 0.2s ease;
}

.status-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Form styling */
.form-label {
    font-weight: 500;
    color: #333;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Tables */
.table th {
    font-weight: 600;
    color: #333;
    border-top: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .landing-hero {
        padding: 2rem 0;
    }

    .landing-hero h1 {
        font-size: 1.75rem;
    }

    .task-item {
        padding: 0.75rem;
    }
}
