/* General Styles */
body {
    background-color: #f8f9fa;
}

/* Dashboard Styles */
.dashboard-section {
    margin-bottom: 2rem;
}

.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .card-title {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .card-text {
    color: #212529;
    margin: 0;
    font-weight: 600;
}

/* Users Table Styles */
.table th {
    font-weight: 600;
    color: #495057;
    border-top: none;
}

.table td {
    vertical-align: middle;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Main Content Styles */
.main-content {
    padding: 2rem;
}

.content-header {
    margin-bottom: 2rem;
}

/* Tab Styles */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 2rem;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    padding: 1rem 2rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: #0d6efd;
    border: none;
}

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

/* Contributions Grid */
.contributions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.contribution-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.contribution-card:hover {
    transform: translateY(-5px);
}

.contribution-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.contribution-content {
    padding: 1rem;
}

.contribution-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contribution-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contribution-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #6c757d;
}

.contribution-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-approved {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-rejected {
    background-color: #f8d7da;
    color: #842029;
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
}

.modal-body {
    padding: 2rem;
}

.contribution-details img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Sorting Styles */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.sortable:hover {
    background-color: #f8f9fa;
}

.sort-icon {
    font-size: 0.8em;
    margin-left: 4px;
    opacity: 0.5;
}

.sort-asc .sort-icon::after {
    content: "↑";
    opacity: 1;
}

.sort-desc .sort-icon::after {
    content: "↓";
    opacity: 1;
}

.sort-asc .sort-icon::before,
.sort-desc .sort-icon::before {
    content: "↕";
    opacity: 0.5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .contributions-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        margin-bottom: 1rem;
    }
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.job-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.job-card:hover {
    transform: translateY(-5px);
}

.job-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.job-content {
    padding: 1rem;
}

.job-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.job-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.job-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #e9ecef;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #495057;
}

/* Search Box */
.search-box {
    max-width: 300px;
}

.search-box .form-control {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
}

.search-box .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Job Details Section */
.job-details-section {
    margin-top: 2rem;
}

.back-button {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Notices Styles */
.notices-section {
    margin-bottom: 2rem;
}

.notice-image {
    height: 200px;
    object-fit: cover;
}

.card .card-title .badge {
    vertical-align: middle;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

#noNoticesMessage,
#selectJobMessage {
    padding: 3rem 0;
    background-color: #f8f9fa;
    border-radius: 12px;
}

/* Edit Notice Form */
#currentImageContainer {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

#currentImage {
    max-width: 100%;
    max-height: 200px;
    display: block;
    margin: 0 auto;
}

/* Form Styles */
.form-select,
.form-control {
    margin-bottom: 1rem;
}

.form-check {
    margin-top: 0.5rem;
}
