/* ===== CRYPTO EXCHANGE ROMANIA - TOOLS SHARED STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #09090b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #fafafa;
    min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #27272a;
    padding: 0 20px;
}
.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fafafa;
    font-weight: 800;
    font-size: 15px;
}
.navbar-logo img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}
.navbar-links {
    display: flex;
    gap: 4px;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.navbar-links::-webkit-scrollbar { display: none; }
.navbar-links a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.2s;
}
.navbar-links a:hover {
    color: #fafafa;
    background: #18181b;
}
.navbar-links a.active {
    color: #fafafa;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #a1a1aa;
    cursor: pointer;
    padding: 8px;
}
@media (max-width: 768px) {
    .navbar-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(9, 9, 11, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 12px;
        border-bottom: 1px solid #27272a;
        gap: 2px;
    }
    .navbar-links.open { display: flex; }
    .navbar-links a { padding: 10px 16px; font-size: 14px; }
    .mobile-menu-btn { display: block; }
}

/* ===== PAGE CONTAINER ===== */
.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}
.page-header {
    text-align: center;
    margin-bottom: 40px;
}
.page-header h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 12px;
}
.page-header h1 .gradient {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 50%, #6d28d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-header p {
    color: #71717a;
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== CARD ===== */
.tool-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    transition: all 0.3s;
}
.tool-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.08);
}
.tool-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fafafa;
}
.tool-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== FORM ELEMENTS ===== */
.input-group {
    margin-bottom: 16px;
}
.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #a1a1aa;
    margin-bottom: 6px;
}
.input-field {
    width: 100%;
    padding: 12px 16px;
    background: #09090b;
    border: 1px solid #27272a;
    border-radius: 10px;
    color: #fafafa;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}
.input-field:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.input-field::placeholder { color: #3f3f46; }

select.input-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2371717a' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}
select.input-field option {
    background: #18181b;
    color: #fafafa;
}

/* ===== BUTTONS ===== */
.btn-primary {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
    transform: translateY(-1px);
}
.btn-secondary {
    padding: 8px 16px;
    background: #27272a;
    color: #a1a1aa;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover {
    background: #3f3f46;
    color: #fafafa;
}
.btn-secondary.active {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.3);
    color: #a78bfa;
}

/* ===== RESULT / OUTPUT ===== */
.result-box {
    background: #09090b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}
.result-value {
    font-size: 28px;
    font-weight: 800;
    color: #fafafa;
    letter-spacing: -0.02em;
}
.result-label {
    font-size: 13px;
    color: #71717a;
    margin-top: 4px;
}
.result-positive { color: #22c55e; }
.result-negative { color: #ef4444; }

/* ===== TABLE ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: #52525b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 12px;
    border-bottom: 1px solid #27272a;
}
.data-table td {
    padding: 12px;
    font-size: 14px;
    border-bottom: 1px solid rgba(39, 39, 42, 0.5);
    vertical-align: middle;
}
.data-table tr:hover td {
    background: rgba(124, 58, 237, 0.03);
}
.data-table .coin-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.data-table .coin-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}
.data-table .coin-name {
    font-weight: 600;
    color: #fafafa;
}
.data-table .coin-symbol {
    color: #71717a;
    font-size: 12px;
}

/* ===== GRID LAYOUTS ===== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 640px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
}

/* ===== BADGES / PILLS ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}
.badge-green { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.badge-red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.badge-violet { background: rgba(124, 58, 237, 0.1); color: #a78bfa; }
.badge-yellow { background: rgba(234, 179, 8, 0.1); color: #eab308; }
.badge-gray { background: rgba(161, 161, 170, 0.1); color: #a1a1aa; }

/* ===== GAUGE / METER ===== */
.gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
}
.gauge-bar {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #ef4444 0%, #eab308 25%, #a3a3a3 50%, #22c55e 75%, #22c55e 100%);
    position: relative;
}
.gauge-needle {
    position: absolute;
    top: -4px;
    width: 4px;
    height: 20px;
    background: #fafafa;
    border-radius: 2px;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(250, 250, 250, 0.5);
    transition: left 0.5s ease;
}

/* ===== LOADING ===== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #27272a;
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-skeleton {
    background: linear-gradient(90deg, #18181b 25%, #27272a 50%, #18181b 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    height: 20px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== FOOTER ===== */
.tools-footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid #27272a;
    margin-top: 60px;
    color: #52525b;
    font-size: 13px;
}
.tools-footer a {
    color: #a78bfa;
    text-decoration: none;
}
.tools-footer a:hover {
    color: #7c3aed;
}

/* ===== MISC ===== */
.text-muted { color: #71717a; }
.text-sm { font-size: 13px; }
.text-right { text-align: right; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #09090b; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #7c3aed; }
