/* Asset styles - Utility classes and component-specific styles */

/* Logo and branding */
.logo {
    height: 40px; 
    width: auto; 
}

/* Background components */
.background-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Notification components */
.notification-circle {
    position: relative;
    border-radius: 999px;
    right: 12px;
}

/* Button components */
.pill-btn {
    border-radius: 999px !important;
    padding: 0.375rem .5rem !important;
    font-weight: 400;
    font-size: .875rem;
    line-height: 1.5;
    border: none;
    color: #fff !important;
    background-color: #0d6efd !important; /* Bootstrap primary blue */
    transition: background 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    align-items: center;
    gap: 0.5em;
    transition: all 0.2s ease;
}

.pill-btn:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

.pill-btn.btn-outline-danger {
    background-color: #e74c3c !important;
}

.pill-btn.btn-outline-secondary {
    background-color: #6C757D !important;
}

.pill-btn.btn-outline-green {
    background-color: #10B981 !important;
}

.pill-btn.btn-outline-yellow {
    background-color: #FFC107 !important;
}

.pill-btn:hover, .pill-btn:focus {
    filter: brightness(0.95);
    text-decoration: none;
}

.remove-btn {
    background: #ff6b6b;
    color: white;
    border-radius: 5px;
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
}

.remove-btn:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

/* Utility classes */
.text-muted {
    font-size: smaller;
}

/* Card components */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Badge components */
.badge-custom {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background-color: #28a745;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-danger {
    background-color: #dc3545;
}

/* Loading states */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #898989;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-online {
    background-color: #28a745;
}

.status-offline {
    background-color: #6c757d;
}

.status-busy {
    background-color: #dc3545;
}

.status-away {
    background-color: #ffc107;
}

/* Avatar components */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}

.avatar-sm {
    width: 24px;
    height: 24px;
}

.avatar-lg {
    width: 60px;
    height: 60px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
}

/* Separator components */
.separator {
    height: 1px;
    background-color: var(--border-color);
    margin: 1rem 0;
}

.separator-vertical {
    width: 1px;
    background-color: var(--border-color);
    height: 100%;
    margin: 0 1rem;
}

/* Highlight components */
.highlight {
    background-color: #fff3cd;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border-left: 4px solid #ffc107;
}

.highlight-success {
    background-color: #d4edda;
    border-left-color: #28a745;
}

.highlight-danger {
    background-color: #f8d7da;
    border-left-color: #dc3545;
}

.highlight-info {
    background-color: #d1ecf1;
    border-left-color: #17a2b8;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .mobile-hide {
        display: none !important;
    }
    
    .mobile-show {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .desktop-hide {
        display: none !important;
    }
    
    .desktop-show {
        display: block !important;
    }
}

/* HTML: <div class="loader"></div> */
.loader {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
}
.loader::before,
.loader::after {    
  content:"";
  grid-area: 1/1;
  --c:no-repeat radial-gradient(farthest-side,#5d1bce 92%,#0000);
  background: 
    var(--c) 50%  0, 
    var(--c) 50%  100%, 
    var(--c) 100% 50%, 
    var(--c) 0    50%;
  background-size: 12px 12px;
  animation: l12 1s infinite;
}
.loader::before {
  margin: 4px;
  filter: hue-rotate(45deg);
  background-size: 8px 8px;
  animation-timing-function: linear
}

@keyframes l12 { 
  100%{transform: rotate(.5turn)}
}