/**
 * Solo Base CSS
 * Fájl: includes/assets/css/shared/solo-base.css
 * Közös alapelemek: gombok, értesítések, logout, badge-ek.
 * Minden Solo oldal betölti.
 *
 * @version 1.0.0
 */

/* ====================================================================
   RESET (csak Solo elemeken belül)
   ==================================================================== */

.solo-shell *,
.solo-shell *::before,
.solo-shell *::after {
    box-sizing: border-box;
}

/* ====================================================================
   GOMBOK
   ==================================================================== */

.solo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.1s;
    line-height: 1;
    white-space: nowrap;
}

.solo-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    text-decoration: none;
}

.solo-btn:disabled,
.solo-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.solo-btn-primary   { background: #1a2e4a; color: #fff; }
.solo-btn-secondary { background: #64748b; color: #fff; }
.solo-btn-danger    { background: #dc2626; color: #fff; }
.solo-btn-ghost     { background: transparent; color: #1a2e4a; border: 1px solid #e2e8f0; }

.solo-btn-sm { padding: 7px 14px; font-size: 13px; }
.solo-btn-lg { padding: 14px 32px; font-size: 16px; }

/* ====================================================================
   LOGOUT GOMB
   ==================================================================== */

.solo-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    color: rgba(255,255,255,0.65);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 7px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}

.solo-logout-btn:hover {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

/* Dark bg nélküli környezetben */
.solo-logout-btn--dark {
    color: #64748b;
    border-color: #e2e8f0;
}

.solo-logout-btn--dark:hover {
    background: #f8fafc;
    color: #1a2e4a;
}

/* ====================================================================
   ÉRTESÍTÉSEK / NOTICE
   ==================================================================== */

.solo-notice {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.solo-notice p { margin: 4px 0; }
.solo-notice p:first-child { margin-top: 0; }
.solo-notice p:last-child  { margin-bottom: 0; }

.solo-notice-info    { background: #eff6ff; border-left: 3px solid #3b82f6; color: #1e40af; }
.solo-notice-success { background: #f0fdf4; border-left: 3px solid #22c55e; color: #166534; }
.solo-notice-warning { background: #fefce8; border-left: 3px solid #eab308; color: #854d0e; }
.solo-notice-error   { background: #fef2f2; border-left: 3px solid #ef4444; color: #991b1b; }

/* ====================================================================
   BADGE-EK
   ==================================================================== */

.solo-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.solo-badge-active    { background: #dcfce7; color: #166534; }
.solo-badge-trial     { background: #f3e8ff; color: #6b21a8; }
.solo-badge-grace     { background: #fef9c3; color: #854d0e; }
.solo-badge-suspended { background: #f1f5f9; color: #475569; }
.solo-badge-demo      { background: #ede9fe; color: #5b21b6; }
.solo-badge-solo      { background: #ede9fe; color: #5b21b6; }
.solo-badge-owner     { background: #dbeafe; color: #1e40af; }
.solo-badge-editor    { background: #dcfce7; color: #166534; }
.solo-badge-viewer    { background: #f1f5f9; color: #475569; }

/* ====================================================================
   KÁRTYÁK
   ==================================================================== */

.solo-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.solo-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a2e4a;
    margin: 0 0 12px;
}

/* ====================================================================
   FORM ELEMEK
   ==================================================================== */

.solo-form-group {
    margin-bottom: 18px;
}

.solo-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 6px;
}

.solo-input,
.solo-select,
.solo-textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    color: #1a2e4a;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
}

.solo-input:focus,
.solo-select:focus,
.solo-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
}

.solo-textarea { resize: vertical; min-height: 80px; }

.solo-input-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Toggle / Checkbox */
.solo-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.solo-toggle-row:last-child { border-bottom: none; }

.solo-toggle-label {
    font-size: 14px;
    color: #334155;
    line-height: 1.4;
}

.solo-toggle-desc {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

/* ====================================================================
   ELVÁLASZTÓ
   ==================================================================== */

.solo-divider {
    border: none;
    border-top: 1px solid #f1f5f9;
    margin: 20px 0;
}

/* ====================================================================
   LOADING
   ==================================================================== */

.solo-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: solo-spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes solo-spin { to { transform: rotate(360deg); } }

/* ====================================================================
   MNB ÁRFOLYAM WIDGET (portolt)
   ==================================================================== */

.solo-mnb-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    padding: 6px 0;
}

/* ====================================================================
   RESPONSIVE SEGÉDEK
   ==================================================================== */

@media (max-width: 640px) {
    .solo-hide-mobile { display: none !important; }
    .solo-card { padding: 16px; }
}

/* Number input spinner nyilak elrejtése — a görgetés/nyíl amúgy is le van tiltva JS-ben,
   de a nyilak látványa félrevezető lenne, ha ott maradnának. */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}