/* Animations */
.slide-up { animation: slideUp 0.3s ease-out; }
.fade-in { animation: fadeIn 0.3s ease-out; }
.slide-right { animation: slideRight 0.3s ease-out; }

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideRight {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Glass Effect */
.glass-effect {
    background: rgba(31, 41, 55, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hamburger Menu */
.hamburger-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active .line-1 {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .line-2 {
    opacity: 0;
}

.hamburger.active .line-3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* Sidebar */
.sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.sidebar.active {
    transform: translateX(0);
}

/* Status Indicators */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.active {
    background-color: #10B981;
    box-shadow: 0 0 8px #10B981;
}

.status-dot.inactive {
    background-color: #EF4444;
    box-shadow: 0 0 8px #EF4444;
}

/* Progress Bars */
.progress-bar {
    height: 4px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #3B82F6;
    transition: width 0.3s ease;
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Loading Skeletons */
.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
    0% { background-color: rgba(156, 163, 175, 0.1); }
    100% { background-color: rgba(156, 163, 175, 0.2); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(107, 114, 128, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 114, 128, 0.7);
}

/* Input Styles */
.custom-input {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(75, 85, 99, 0.5);
    transition: all 0.3s ease;
}

.custom-input:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    background: rgba(31, 41, 55, 0.7);
}

/* Button Styles */
.btn-primary {
    background: #3B82F6;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #2563EB;
    transform: translateY(-1px);
}

.btn-danger {
    background: #EF4444;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-1px);
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip:hover:before {
    opacity: 1;
    visibility: visible;
}

/* Settings Page Specific Styles */
.settings-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(31, 41, 55, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: rgba(107, 114, 128, 0.5);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(107, 114, 128, 0.7);
    transform: translateY(-1px);
}

/* Host List Item Hover Effect */
.host-item {
    transition: transform 0.2s ease;
}

.host-item:hover {
    transform: translateX(4px);
}

/* Settings Input Groups */
.settings-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: rgba(31, 41, 55, 0.3);
}

.settings-input-group:focus-within {
    background: rgba(31, 41, 55, 0.5);
}

/* Search and Filter Styles */
.btn-filter {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: rgba(31, 41, 55, 0.5);
    transition: all 0.3s ease;
}

.btn-filter:hover {
    background: rgba(31, 41, 55, 0.7);
}

.btn-filter.active {
    background: #3B82F6;
    color: white;
}

.custom-input {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(75, 85, 99, 0.5);
    transition: all 0.3s ease;
}

.custom-input:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    background: rgba(31, 41, 55, 0.7);
}

/* Scrollable Filters */
.filters-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0;
    margin: 0 -0.5rem; /* Negative margin to align with container */
}

.filters-scroll::-webkit-scrollbar {
    height: 4px;
}

.filters-scroll::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.3);
    border-radius: 2px;
}

.filters-scroll::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 2px;
}

.filters-scroll > div {
    padding: 0 0.5rem;
    min-width: min-content;
}

/* Search Input */
.custom-input {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(75, 85, 99, 0.5);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.custom-input:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    background: rgba(31, 41, 55, 0.7);
}

/* Filter Buttons */
.btn-filter {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: rgba(31, 41, 55, 0.5);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-filter:hover {
    background: rgba(31, 41, 55, 0.7);
}

.btn-filter.active {
    background: #3B82F6;
    color: white;
} 