/* Fsociety Components CSS */

/* Progress Bar */
.fs-progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 1rem 0;
}

.fs-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
}

.card-hover:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 255, 157, 0.3);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(0, 255, 157, 0.15);
    color: var(--primary);
}

.badge-warning {
    background: rgba(255, 165, 2, 0.15);
    color: #ffa502;
}

.badge-danger {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
}

.badge-info {
    background: rgba(70, 130, 180, 0.15);
    color: #4682B4;
}

/* Status Indicators */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-online {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.status-offline {
    background: #ff4757;
}

.status-pending {
    background: #ffa502;
}

/* Big Connect Button (VPN) */
.big-connect-btn {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: pulse-border 2s infinite;
}

.big-connect-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.3);
}

.big-connect-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes pulse-border {

    0%,
    100% {
        border-color: rgba(255, 255, 255, 0.2);
    }

    50% {
        border-color: rgba(0, 255, 157, 0.4);
    }
}

/* Server Node */
.server-node {
    transition: all 0.2s ease;
}

.server-node:hover {
    background: rgba(0, 255, 157, 0.05);
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Toast Animations */
.toast-enter {
    animation: slideIn 0.3s ease;
}

.toast-exit {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Landing Page Specific */
.hero-gradient {
    background: radial-gradient(ellipse at center, rgba(0, 255, 157, 0.15) 0%, transparent 70%);
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 255, 157, 0.1);
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Markdown Rendering */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
}

.markdown-content h1 {
    font-size: 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.markdown-content h2 {
    font-size: 1.5rem;
}

.markdown-content h3 {
    font-size: 1.25rem;
}

.markdown-content h4 {
    font-size: 1.1rem;
}

.markdown-content code {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
}

.markdown-content pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.markdown-content pre code {
    background: none;
    padding: 0;
}

.markdown-content ul,
.markdown-content ol {
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

.markdown-content li {
    margin: 0.25rem 0;
}

.markdown-content blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-muted);
    font-style: italic;
}

/* Inline Edit */
.inline-edit-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--primary);
    border-radius: 4px;
    color: var(--text-main);
    padding: 0.5rem;
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    outline: none;
}

.inline-edit-input:focus {
    box-shadow: 0 0 0 2px rgba(0, 255, 157, 0.2);
}