/**
 * Custom Styles for Church Calendar System
 */

/* Navigation bar styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar .nav-link {
    font-weight: 700;
}

.navbar .dropdown-toggle {
    font-weight: 700;
}

/* Body and layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Ministry color badges */
.ministry-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Event cards */
.event-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Assignment status badges */
.badge {
    font-weight: 500;
}

/* Calendar view */
.calendar-day {
    min-height: 120px;
    border: 1px solid #dee2e6;
    padding: 0.5rem;
}

.calendar-day .date {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.calendar-day.today {
    background-color: #e3f2fd;
}

.calendar-event {
    font-size: 0.75rem;
    padding: 0.25rem;
    margin-bottom: 0.25rem;
    border-radius: 0.25rem;
    cursor: pointer;
    color: #fff;
}

.calendar-event:hover {
    opacity: 0.8;
}

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

/* File upload */
.file-upload-box {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: background-color 0.2s;
}

.file-upload-box:hover {
    background-color: #f8f9fa;
}

.file-upload-box.dragover {
    background-color: #e3f2fd;
    border-color: #007bff;
}

/* Comments */
.comment {
    padding: 1rem;
    border-left: 3px solid #007bff;
    background-color: #f8f9fa;
    margin-bottom: 1rem;
}

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

.comment-time {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Conflicts warning */
.conflict-warning {
    border-left: 4px solid #ffc107;
    background-color: #fff3cd;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }

    .calendar-day {
        min-height: 80px;
    }
}

/* Utility classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

/* Assignment quick actions */
.assignment-actions {
    display: flex;
    gap: 0.5rem;
}

.assignment-actions .btn {
    flex: 1;
}
