/**
 * Trip Planner Unified Button Styles
 * Frosted glass with colored border
 */

.trip-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    border: 2px solid var(--btn-accent-color, #0ea5e9);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    cursor: pointer;
}

.trip-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.trip-btn:active {
    transform: translateY(0) scale(0.98);
}

.trip-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.trip-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: none;
}

/* Icon styling */
.trip-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--btn-accent-color, #0ea5e9);
    flex-shrink: 0;
}

/* Color variants */
.trip-btn-sky {
    --btn-accent-color: #0ea5e9;
}

.trip-btn-amber {
    --btn-accent-color: #f59e0b;
}

.trip-btn-purple {
    --btn-accent-color: #8b5cf6;
}

.trip-btn-green {
    --btn-accent-color: #22c55e;
}

.trip-btn-red {
    --btn-accent-color: #ef4444;
}

.trip-btn-slate {
    --btn-accent-color: #64748b;
}

/* Primary action button (Add Stop) - solid color */
.trip-btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border: 2px solid #0284c7;
}

.trip-btn-primary:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
}

.trip-btn-primary svg {
    stroke: white;
}


/* Ensure buttons fill grid cells */
.grid .trip-btn {
    width: 100%;
}

/* Fix flex inputs to not overflow */
#trip-form .flex input {
    min-width: 0;
}
