/* components.css - Buttons, cards, forms, progress bars, badges */

/* Glossy Button */
.glossy-btn {
    background-image: linear-gradient(to bottom, #60a5fa, #1d4ed8);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.4);
    text-shadow: 0 -1px 0 rgba(0,0,0,0.4);
}

.glossy-btn:hover {
    background-image: linear-gradient(to bottom, #3b82f6, #1e40af);
    cursor: pointer;
}

/* Glossy Header */
.glossy-header {
    background-image: linear-gradient(to bottom, #f3f4f6, #d1d5db);
    border-bottom: 1px solid #9ca3af;
}

/* Panel Card */
.panel {
    background: white;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 4px;
}

/* Reader-prompt overlay inner container */
.macos {
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
    block-size: max(360px, 45vh);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.macos h2 {
    font-size: 1.6rem;
    margin: 1rem 0 0.5rem;
    color: #1a1a1a;
}

.macos p {
    color: #555;
    max-width: 400px;
    margin-bottom: 1.5rem;
}

/* Reader-prompt buttons */
.b_undkt_prim_pool {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.b_undkt_prim_pool:hover {
    background: #1d4ed8;
}

.b_undkt_second_pool {
    background: none;
    border: none;
    color: #666;
    margin-top: 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

/* Form inputs */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.badge-warning {
    background-color: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Progress bar */
.progress-track {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 9999px;
    height: 1rem;
    border: 1px solid #9ca3af;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.progress-fill-green {
    background: linear-gradient(to right, #22c55e, #16a34a);
}

.progress-fill-blue {
    background: linear-gradient(to right, #3b82f6, #2563eb);
}

/* Confirmation message */
.confirmation-box {
    background: linear-gradient(to bottom, #ecfdf5, #d1fae5);
    border: 2px solid #10b981;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.confirmation-box h2 {
    color: #065f46;
    margin-bottom: 1rem;
}

.confirmation-box p {
    color: #047857;
}
