/* TGPulse — Custom styles */

/* Glassmorphism cards */
.glass {
    background: rgba(28, 42, 58, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(43, 62, 80, 0.5);
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(134, 150, 167, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(134, 150, 167, 0.5);
}

/* Sidebar active state animation */
nav a {
    transition: all 0.15s ease;
}

/* Table row hover */
tbody tr {
    transition: background-color 0.1s ease;
}

/* Button press effect */
button, a[role="button"] {
    transition: all 0.15s ease;
}

button:active, a[role="button"]:active {
    transform: scale(0.98);
}

/* Pulse animation for status dots */
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* HTMX loading indicator */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-request.htmx-indicator {
    display: inline-block;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom upload dropzone */
.upload-dropzone {
    width: 100%;
    border: 1px dashed rgba(98, 119, 139, 0.8);
    border-radius: 0.9rem;
    background: rgba(23, 33, 43, 0.45);
    padding: 1.1rem 1rem;
    text-align: center;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.upload-dropzone:hover {
    background: rgba(23, 33, 43, 0.62);
    border-color: rgba(119, 142, 166, 0.95);
}

.upload-dropzone-active {
    border-color: rgba(42, 171, 238, 0.95) !important;
    background: rgba(42, 171, 238, 0.12) !important;
    box-shadow: 0 0 0 3px rgba(42, 171, 238, 0.14);
}

/* Explicit clickable actions */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid rgba(82, 101, 120, 0.7);
    background: rgba(28, 42, 58, 0.45);
    color: #C4D0DB;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    transition: all 0.15s ease;
}

.action-btn:hover {
    border-color: rgba(42, 171, 238, 0.6);
    color: #7FD1FF;
    background: rgba(42, 171, 238, 0.12);
}

.action-btn-danger:hover {
    border-color: rgba(248, 113, 113, 0.7);
    color: #FCA5A5;
    background: rgba(239, 68, 68, 0.12);
}
