/* ============================================
   STOCKGLIMPSE - COMPONENT STYLES
   Buttons, forms, cards, and UI components
   ============================================ */

/* Range Input Styling */
input[type=range] {
    -webkit-appearance: none;
    background: transparent;
    width: 100%;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--indigo-600);
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-fast);
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.4);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: linear-gradient(to right, #6366f1, #a855f7);
    border-radius: 2px;
}

input[type=range]::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--indigo-600);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: linear-gradient(to right, #6366f1, #a855f7);
    border-radius: 2px;
}

/* Buttons */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Form Elements */
input[type="text"],
input[type="password"],
select,
textarea {
    font-family: inherit;
    transition: all var(--transition-base);
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    ring: 2px solid rgba(14, 165, 233, 0.2);
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-pending {
    background: var(--slate-100);
    color: var(--slate-500);
}

.badge-loading {
    background: #dbeafe;
    color: var(--brand-600);
}

.badge-success {
    background: #dcfce7;
    color: var(--success);
}

.badge-error {
    background: #fee2e2;
    color: var(--error);
}

/* Status Dot */
.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    transition: all var(--transition-base);
}

.status-dot.active {
    background: var(--success);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.status-dot.inactive {
    background: var(--error);
}

/* Progress Bar */
.progress-bar {
    height: 0.375rem;
    background: var(--slate-700);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--brand-500), var(--indigo-500));
    border-radius: 9999px;
    transition: width var(--transition-slow);
}

/* Drop Zone */
.drop-zone {
    position: relative;
    cursor: pointer;
    transition: all var(--transition-slow);
}

.drop-zone:hover {
    transform: scale(1.01);
}

.drop-zone-glow {
    position: absolute;
    inset: -0.25rem;
    background: linear-gradient(to right, var(--brand-600), var(--indigo-600));
    border-radius: 1rem;
    opacity: 0.25;
    filter: blur(8px);
    transition: opacity 1s;
}

.drop-zone:hover .drop-zone-glow {
    opacity: 0.5;
    transition: opacity 200ms;
}

/* Icon Container */
.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base);
}

.drop-zone:hover .icon-container {
    transform: rotate(12deg);
}

/* Thumbnail Container */
.thumbnail {
    position: relative;
    height: 8rem;
    background: var(--slate-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--slate-100);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--slate-200);
}

/* Video Overlay */
.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

/* Divider */
.divider {
    height: 1px;
    background: var(--slate-100);
    margin: var(--spacing-lg) 0;
}

.divider-vertical {
    width: 1px;
    height: 1rem;
    background: var(--slate-200);
    margin: 0 var(--spacing-sm);
}