/* Laravel Artisan Bar - Self-contained styles */

.artisan-bar-hidden { display: none !important; }

/* Minimized tab */
.artisan-bar-tab {
    position: fixed;
    bottom: 0;
    right: 16px;
    z-index: 99999;
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(8px);
    color: #9ca3af;
    padding: 6px 12px;
    border-radius: 6px 6px 0 0;
    border: 1px solid #374151;
    border-bottom: none;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
    width: auto;
}
.artisan-bar-tab:hover { color: #fff; }
.artisan-bar-tab svg { width: 14px; height: 14px; }

/* Main wrapper */
#artisan-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 14px;
}

/* Suggestions */
.artisan-bar-suggestions {
    width: 100%;
    padding: 6px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(55, 65, 81, 0.5);
}
.artisan-bar-suggestions button {
    padding: 4px 10px;
    border-radius: 6px;
    background: #1f2937;
    color: #d1d5db;
    font-size: 12px;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}
.artisan-bar-suggestions button:hover {
    background: #059669;
    color: #fff;
}

/* Resize handle */
.artisan-bar-resize {
    height: 6px;
    cursor: ns-resize;
    background: #374151;
    transition: background 0.15s;
}
.artisan-bar-resize:hover { background: #059669; }

/* Output panel */
.artisan-bar-output {
    width: 100%;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid #374151;
    overflow-y: auto;
    padding: 12px 16px;
}
.artisan-bar-output-entry { margin-bottom: 8px; }
.artisan-bar-output-entry:last-child { margin-bottom: 0; }
.artisan-bar-output-cmd { color: #6b7280; font-size: 13px; }
.artisan-bar-output-text {
    white-space: pre-wrap;
    font-size: 13px;
    margin-top: 2px;
    word-break: break-all;
}
.artisan-bar-output-ok { color: #34d399; }
.artisan-bar-output-err { color: #f87171; }
.artisan-bar-output-warn { color: #fbbf24; }

/* Command bar */
.artisan-bar-bar {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid #374151;
}
.artisan-bar-input-row {
    width: 100%;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.artisan-bar-prompt-user { color: #34d399; font-weight: 700; }
.artisan-bar-prompt-sep { color: #fff; font-weight: 700; }

/* Inner row containers use display:contents to flow into parent flex */
.artisan-bar-password-row,
.artisan-bar-cmd-row {
    display: contents;
}
.artisan-bar-password-row > span,
.artisan-bar-cmd-row > span { flex-shrink: 0; }

.artisan-bar-input,
.artisan-bar-password-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #34d399;
    font-family: inherit;
    font-size: 14px;
    padding: 0;
}
.artisan-bar-input::placeholder,
.artisan-bar-password-input::placeholder { color: #4b5563; }

.artisan-bar-password-input { color: #fbbf24; }

/* Spinner */
.artisan-bar-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(251, 191, 36, 0.25);
    border-top-color: #fbbf24;
    border-radius: 50%;
    animation: artisan-bar-spin 0.6s linear infinite;
}
@keyframes artisan-bar-spin {
    to { transform: rotate(360deg); }
}

/* Buttons */
.artisan-bar-btn {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    flex-shrink: 0;
    transition: color 0.15s;
}
.artisan-bar-btn:hover { color: #34d399; }
.artisan-bar-btn-minimize { display: flex; align-items: center; }
.artisan-bar-btn-minimize svg { width: 20px; height: 20px; }
