/* Material 3 inspired CSS for Camp Management System */

/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #1f1f1f;
}
.app-container {
    display: flex;
    min-height: 100vh;
}
.main-content {
    flex: 1;
    padding: 24px;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: white;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    padding: 16px 0;
}
.sidebar-header {
    padding: 0 16px 16px;
    border-bottom: 1px solid #e0e0e0;
}
.sidebar-title {
    font-size: 20px;
    font-weight: 500;
    color: #1f1f1f;
    margin: 0;
}
.sidebar-user {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}
.sidebar-menu-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    color: #424242;
    text-decoration: none;
    transition: background-color 0.3s;
}
.sidebar-menu-item:hover {
    background-color: #f5f5f5;
}
.sidebar-menu-item.active {
    background-color: #e8def8;
    color: #6750a4;
}
.sidebar-menu-item i {
    margin-right: 12px;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.page-title {
    font-size: 24px;
    font-weight: 500;
    color: #1f1f1f;
    margin: 0;
}

/* Buttons */
.btn {
    background-color: #6750a4;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}
.btn i {
    margin-right: 8px;
}
.btn:hover {
    background-color: #7965af;
}
.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6750a4;
    margin-right: 8px;
}
.action-btn:hover {
    color: #7965af;
}
.fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background-color: #6750a4;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}
.fab:hover {
    background-color: #7965af;
}

/* Cards */
.card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 20px;
}
.card-title {
    font-size: 18px;
    font-weight: 500;
    color: #1f1f1f;
    margin-top: 0;
    margin-bottom: 12px;
}
.card-value {
    font-size: 32px;
    font-weight: 500;
    color: #6750a4;
    margin: 0;
}
.card-subtitle {
    font-size: 14px;
    color: #666;
    margin: 4px 0 0;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* Tasks Container */
.tasks-container {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 24px;
}
.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.tasks-title {
    font-size: 20px;
    font-weight: 500;
    color: #1f1f1f;
    margin: 0;
}

/* Tables */
.tasks-table {
    width: 100%;
    border-collapse: collapse;
}
.tasks-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 500;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
}
.tasks-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
}
.tasks-table tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.badge-pending {
    background-color: #fff4e5;
    color: #ff9800;
}
.badge-in-progress {
    background-color: #e8f4fd;
    color: #2196f3;
}
.badge-completed {
    background-color: #e8f5e9;
    color: #4caf50;
}
.badge-outsourced {
    background-color: #f3e5f5;
    color: #9c27b0;
}
.badge-high, .badge-urgent {
    background-color: #ffebee;
    color: #f44336;
}
.badge-medium {
    background-color: #fff4e5;
    color: #ff9800;
}
.badge-low {
    background-color: #e8f5e9;
    color: #4caf50;
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 15px;
}
.alert-danger {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}
.alert-success {
    background-color: #e8f5e9;
    color: #388e3c;
    border: 1px solid #c8e6c9;
}

/* Form Elements */
.form-container {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 24px;
    margin-bottom: 24px;
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #424242;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}
.form-control:focus {
    border-color: #6750a4;
    outline: none;
}
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.form-check-input {
    margin-right: 8px;
}
.invalid-feedback {
    color: #f44336;
    font-size: 14px;
    margin-top: 4px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        padding: 8px 0;
    }
    .main-content {
        padding: 16px;
    }
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-header > div {
        margin-top: 16px;
    }
}