/* Custom Styles for Task Management System */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Forms */
.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Task Cards */
.task-card {
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
}

.task-card.priority-high {
    border-left-color: var(--danger-color);
}

.task-card.priority-medium {
    border-left-color: var(--warning-color);
}

.task-card.priority-low {
    border-left-color: var(--success-color);
}

.task-card.overdue {
    background-color: #fdf2f2;
}

/* Status Badges */
.badge {
    font-size: 0.8em;
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Stats Cards */
.stats-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #495057);
    color: white;
    border-radius: 10px;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stats-card.pending {
    background: linear-gradient(135deg, var(--warning-color), #fd7e14);
}

.stats-card.in-progress {
    background: linear-gradient(135deg, var(--info-color), #0084ff);
}

.stats-card.completed {
    background: linear-gradient(135deg, var(--success-color), #20c997);
}

.stats-card.cancelled {
    background: linear-gradient(135deg, var(--danger-color), #e55353);
}

/* Dashboard */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color), #495057);
    color: white;
    padding: 2rem 0;
    margin: -1.5rem -15px 2rem -15px;
    border-radius: 0 0 15px 15px;
}

/* Task Details */
.task-details {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.task-meta > div {
    background-color: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Comments */
.comment {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary-color);
}

.comment-header {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.comment-time {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, var(--primary-color), #6610f2);
    color: white;
    padding: 3rem 0;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.welcome-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.welcome-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Login/Register Forms */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-card {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: var(--primary-color);
    font-weight: bold;
}

/* User Management Styles */
.modal-xl {
    max-width: 1200px;
}

#userManagementModal .border-start {
    border-left: 2px solid #dee2e6 !important;
}

#userManagementModal .table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

#userManagementModal .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

#defaultUserState {
    padding: 2rem 1rem;
    text-align: center;
}

#defaultUserState i {
    color: #6c757d;
    opacity: 0.5;
}

#addUserForm, #editUserForm {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

#addUserForm h6, #editUserForm h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.user-action-btn {
    transition: all 0.2s ease-in-out;
}

.user-action-btn:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        margin: -1rem -15px 2rem -15px;
        padding: 1.5rem 0;
    }
    
    .welcome-section h1 {
        font-size: 2rem;
    }
    
    .task-meta {
        flex-direction: column;
    }
    
    .stats-card h3 {
        font-size: 2rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-muted-light {
    color: #6c757d !important;
    font-size: 0.9rem;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #495057);
}

.border-start-primary {
    border-left: 4px solid var(--primary-color) !important;
}

.border-start-danger {
    border-left: 4px solid var(--danger-color) !important;
}

.border-start-warning {
    border-left: 4px solid var(--warning-color) !important;
}

.border-start-success {
    border-left: 4px solid var(--success-color) !important;
}
