/* ===================================
   SatoshiConclaveFeed - Main Styles
   =================================== */

/* CSS Variables */
:root {
    --color-primary: #f97316;
    --color-primary-light: #fb923c;
    --color-secondary: #3b82f6;
    --color-success: #22c55e;
    --color-warning: #eab308;
    --color-error: #ef4444;
    --color-bg-dark: #020617;
    --color-bg-main: #0f172a;
    --color-bg-card: rgba(15, 23, 42, 0.6);
    --color-border: rgba(249, 115, 22, 0.1);
    --color-text-primary: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;
}

/* Glass Panel Effect */
.glass-panel {
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
}

.glass-panel-solid {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Custom Scrollbar */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-custom::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.scrollbar-custom::-webkit-scrollbar-track {
    background: rgba(51, 65, 85, 0.3);
    border-radius: 3px;
}

.scrollbar-custom::-webkit-scrollbar-thumb {
    background: rgba(249, 115, 22, 0.4);
    border-radius: 3px;
}

.scrollbar-custom::-webkit-scrollbar-thumb:hover {
    background: rgba(249, 115, 22, 0.6);
}

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(249, 115, 22, 0.5);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fade-in 0.4s ease-out forwards;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg,
            rgba(51, 65, 85, 0.3) 25%,
            rgba(51, 65, 85, 0.5) 50%,
            rgba(51, 65, 85, 0.3) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 300px;
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    border-left: 4px solid;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slide-in 0.3s ease-out forwards;
    transform: translateX(100%);
}

.toast.success {
    border-color: var(--color-success);
}

.toast.error {
    border-color: var(--color-error);
}

.toast.info {
    border-color: var(--color-secondary);
}

.toast.warning {
    border-color: var(--color-warning);
}

@keyframes slide-in {
    to {
        transform: translateX(0);
    }
}

@keyframes slide-out {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--color-primary), #ea580c);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    background: rgba(51, 65, 85, 0.5);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 116, 139, 0.3);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(100, 116, 139, 0.5);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-ghost:hover {
    background: rgba(51, 65, 85, 0.5);
    color: white;
}

/* Input Styles */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.5);
    color: white;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.input-field::placeholder {
    color: var(--color-text-muted);
}

.input-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-warning {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.badge-error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Table Styles */
.data-table {
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
}

.data-table thead {
    background: rgba(15, 23, 42, 0.8);
}

.data-table th {
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 1rem;
    color: var(--color-text-secondary);
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.data-table tbody tr {
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(51, 65, 85, 0.2);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-blue {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-green {
    background: linear-gradient(135deg, #22c55e, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow Effects */
.glow-orange {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.3);
}

.glow-blue {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.glow-green {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}
/* Modal Improvements */
.direction-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.direction-btn:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(148, 163, 184, 0.5);
}

.direction-btn.selected[data-value="long"] {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #22c55e;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.1);
}

.direction-btn.selected[data-value="short"] {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
}

.signal-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.5);
    color: white;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.signal-form-input:focus {
    border-color: var(--color-primary);
    outline: none;
    background: rgba(15, 23, 42, 0.95);
}

.signal-form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Numeric Controls */
.num-control-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 0.625rem;
    color: var(--color-text-secondary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.num-control-btn:hover {
    background: rgba(249, 115, 22, 0.15);
    color: var(--color-primary);
    border-color: rgba(249, 115, 22, 0.4);
    transform: translateY(-50%) scale(1.05);
}

.num-control-btn:active {
    transform: translateY(-50%) scale(0.95);
    background: rgba(249, 115, 22, 0.25);
}

.num-control-btn.minus {
    left: 0.375rem;
}

.num-control-btn.plus {
    right: 0.375rem;
}

.num-control-btn.small {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
}

.num-control-btn.small.minus {
    left: 0.25rem;
}

.num-control-btn.small.plus {
    right: 0.25rem;
}

/* Enhanced input focus when child of relative container with buttons */
.relative:focus-within .signal-form-input {
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.1);
}

/* Hide number input spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}


/* Signal Modal Base Styles */
.signal-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.signal-modal.open {
    display: block;
}

.signal-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(8px);
}

.signal-modal-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.signal-modal-content {
    width: 100%;
    max-width: 32rem; /* Increased width for better layout */
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(51, 65, 85, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.signal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.signal-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(51, 65, 85, 0.3);
}
