/* IVR Távoli Lekérés – Mobil-optimalizált stílusok */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0d1117 0%, #1a2332 50%, #0d1117 100%);
    color: #e6edf3;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* === AUTH SECTION === */
#auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 380px;
}

.logo-area {
    text-align: center;
    margin-bottom: 28px;
}

.logo-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 12px rgba(0, 166, 81, 0.4));
}

.logo-area h1 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 14px;
    color: #8b949e;
}

/* === CARDS === */
.card {
    background: rgba(22, 27, 34, 0.9);
    border: 1px solid rgba(48, 54, 61, 0.7);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

/* === FORM === */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #8b949e;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(48, 54, 61, 0.8);
    border-radius: 10px;
    color: #e6edf3;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #00a651;
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.15);
}

.form-group input::placeholder {
    color: #484f58;
}

.error-msg {
    color: #f85149;
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
    min-height: 18px;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #00a651, #008c44);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 166, 81, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-large {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    margin-top: 8px;
}

.btn-trigger {
    width: 100%;
    padding: 20px 32px;
    font-size: 18px;
    border-radius: 16px;
    margin-top: 16px;
}

.btn-icon {
    font-size: 22px;
}

.btn-small {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 8px;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(139, 148, 158, 0.4);
    color: #8b949e;
}

.btn-outline:hover {
    background: rgba(139, 148, 158, 0.1);
}

/* === HEADER BAR === */
.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(22, 27, 34, 0.95);
    border-bottom: 1px solid rgba(48, 54, 61, 0.7);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon {
    width: 28px;
    height: 28px;
}

.header-title {
    font-size: 16px;
    font-weight: 700;
    color: #00a651;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-label {
    font-size: 12px;
    color: #8b949e;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === MAIN CONTENT === */
.main-content {
    padding: 16px;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* === TRIGGER CARD === */
.trigger-card {
    text-align: center;
    padding: 32px 24px;
}

.trigger-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.trigger-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.info-text {
    font-size: 13px;
    color: #8b949e;
    line-height: 1.5;
}

/* === STATUS CARD === */
.status-card {
    text-align: center;
    padding: 24px;
    border-color: rgba(0, 166, 81, 0.3);
}

.status-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.status-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.status-detail {
    font-size: 13px;
    color: #8b949e;
    word-break: break-word;
}

.status-card.success {
    border-color: rgba(0, 166, 81, 0.5);
    background: rgba(0, 166, 81, 0.08);
}

.status-card.error {
    border-color: rgba(248, 81, 73, 0.5);
    background: rgba(248, 81, 73, 0.08);
}

.status-card.processing {
    border-color: rgba(56, 132, 255, 0.5);
    background: rgba(56, 132, 255, 0.08);
}

/* === HISTORY === */
.history-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(13, 17, 23, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(48, 54, 61, 0.5);
}

.history-item .hi-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.history-item .hi-info {
    flex: 1;
    min-width: 0;
}

.history-item .hi-result {
    font-size: 13px;
    color: #e6edf3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item .hi-time {
    font-size: 11px;
    color: #8b949e;
}

.empty-text {
    color: #484f58;
    font-size: 13px;
    text-align: center;
    padding: 12px;
}

/* === NAME FORM (sikeres lekérés után) === */
.name-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(48, 54, 61, 0.7);
    text-align: left;
}

.name-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #8b949e;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.name-input-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.name-input-row input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(48, 54, 61, 0.8);
    border-radius: 10px;
    color: #e6edf3;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.name-input-row input:focus {
    border-color: #00a651;
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.15);
}

.btn-save-name {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
}

.name-status {
    font-size: 13px;
    margin-top: 8px;
    min-height: 18px;
}

.name-status.success { color: #3fb950; }
.name-status.error { color: #f85149; }

/* === PULSE ANIMATION === */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulsing {
    animation: pulse 1.5s ease-in-out infinite;
}
