/* Custom CSS for Event Tracking System */

.btn-block {
    width: 100%;
}

.card {
    border-radius: 10px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(33, 40, 50, 0.15);
}

.card-header {
    border-radius: 10px 10px 0 0;
}

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

.badge {
    font-size: 0.8em;
}

.table-responsive {
    border-radius: 8px;
}

.alert {
    border-radius: 8px;
}

/* Map styles */
.map-container {
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
}

#map {
    height: 100%;
    width: 100%;
}

/* Location status indicator */
.location-indicator {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1000;
}

/* Task status colors */
.task-pending {
    border-left: 4px solid #6c757d;
}

.task-in-progress {
    border-left: 4px solid #ffc107;
}

.task-completed {
    border-left: 4px solid #198754;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Custom button styles */
.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-info:hover,
.btn-outline-warning:hover {
    color: white;
}

/* Loading spinner */
.loading-spinner {
    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); }
}

/* Notification System Styles */
.notification-unread {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    padding-left: 0.75rem;
}

#notifications-link .badge {
    font-size: 0.6rem;
    padding: 0.25rem 0.4rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.notification-item {
    transition: all 0.2s ease;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}

.notification-item:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

.notification-icon {
    font-size: 1.2rem;
    min-width: 1.5rem;
}

.notification-actions .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Dashboard notification widgets */
#notifications-widget .notification-unread,
#admin-notifications-widget .notification-unread {
    border-left: 3px solid #007bff;
    padding-left: 0.5rem;
}

.text-warning.nav-link {
    animation: bellShake 0.5s ease-in-out;
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}