/* Custom styles for GTO application */

:root {
    --primary-color: #6b8e23;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.navbar-dark.bg-primary {
    background-color: #6b8e23 !important;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: #fff;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    color: #6c757d;
}

.badge {
    padding: 0.375rem 0.75rem;
    font-weight: 500;
}

/* Login page */
.card.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Dashboard stats cards */
.card.text-white .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.card.text-white h2 {
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .card.text-white {
        margin-bottom: 1rem;
    }
}

/* HTMX indicators */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-request.htmx-indicator {
    display: inline-block;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Favorite buttons */
.favorite-btn {
    position: relative;
    padding-right: 2rem;
}

.favorite-btn .btn-close {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s;
}

.favorite-btn:hover .btn-close {
    opacity: 0.7;
}

.favorite-btn .btn-close:hover {
    opacity: 1 !important;
}

/* Activity row animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.htmx-added {
    animation: fadeIn 0.3s ease-in;
}

/* Quick time links */
.form-label small a {
    text-decoration: none;
    margin: 0 0.25rem;
}

.form-label small a:hover {
    text-decoration: underline;
}

/* Floating Bug Report Button */
.bug-report-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: none;
    transition: all 0.3s ease;
    animation: pulse-bug 2s infinite;
}

.bug-report-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.6);
}

.bug-report-fab:active {
    transform: scale(0.95);
}

/* Subtle pulse animation to attract attention */
@keyframes pulse-bug {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(220, 53, 69, 0.6);
    }
}

/* Responsive - smaller on mobile */
@media (max-width: 768px) {
    .bug-report-fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
