/* Custom styles for components not easily handled by Tailwind */

/* Smooth theme transitions */
* {
    transition:
        background-color 0.2s ease-in-out,
        border-color 0.2s ease-in-out;
}

/* Custom Color Variables */
:root {
    --color-primary: #2563eb;
    --color-accent: #f59e0b;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-purple: #8b5cf6;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

.dark {
    --color-primary: #3b82f6;
    --color-accent: #fbbf24;
}

/* Enhanced Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: 2px solid transparent;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.btn-accent {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 2px solid transparent;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.btn-accent:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid currentColor;
}

.btn-outline:hover {
    background: rgba(37, 99, 235, 0.1);
}

/* Enhanced Card Styles */
.card-hover {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.card-hover:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.dark .card-hover:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Decorative Borders */
.border-gradient {
    border: 3px solid;
    border-image: linear-gradient(135deg, #2563eb, #8b5cf6) 1;
}

.border-thick {
    border-width: 3px;
}

.border-dashed-thick {
    border-width: 3px;
    border-style: dashed;
}

/* Typography Enhancements */
.text-gradient {
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.heading-accent::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    margin-top: 12px;
    border-radius: 2px;
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 2px solid rgba(245, 158, 11, 0.3);
}

.badge-purple {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 2px solid rgba(139, 92, 246, 0.3);
}

/* Input Focus Enhancements */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* Stat Cards */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

/* Info Box Enhancements */
.info-box {
    position: relative;
    border-left: 4px solid;
}

.info-box-blue {
    border-left-color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

.dark .info-box-blue {
    background: rgba(37, 99, 235, 0.1);
}

.info-box-amber {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.dark .info-box-amber {
    background: rgba(245, 158, 11, 0.1);
}

/* Tunnel URL Styling */
.tunnel-url {
    font-family: "Monaco", "Courier New", monospace;
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.1),
        rgba(139, 92, 246, 0.1)
    );
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-radius: 8px;
    padding: 4px 8px;
}

/* Token Card Border */
.token-card {
    border-left: 4px solid var(--color-accent);
}

/* Pulse Animation for Active Status */
.pulse-success {
    animation: pulse-success 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-success {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Feature Card Icons */
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.1),
        rgba(139, 92, 246, 0.1)
    );
    border: 2px solid rgba(37, 99, 235, 0.2);
}

/* Code Block Styling */
pre code {
    font-family: "Monaco", "Courier New", monospace;
    font-size: 0.875rem;
}

/* Smooth Hover Transitions */
a,
button {
    transition: all 0.2s ease;
}

/* Custom Checkbox */
input[type="checkbox"]:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Divider with Icon */
.divider-icon {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
}

.divider-icon::before,
.divider-icon::after {
    content: "";
    flex: 1;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.dark .divider-icon::before,
.dark .divider-icon::after {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.divider-icon span {
    padding: 0 1rem;
}
