/* ============================================================
   Apna Prescription Upload — Frontend Styles
   ============================================================ */

.apna-rx-upload-wrapper {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    font-family: inherit;
}

.apna-rx-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.apna-rx-header .dashicons {
    font-size: 22px;
    color: #2563eb;
    flex-shrink: 0;
}

.apna-rx-header h3 {
    margin: 0;
    font-size: 1.1em;
    color: #1e3a5f;
}

.apna-rx-desc {
    color: #475569;
    font-size: .92em;
    line-height: 1.6;
    margin-bottom: 14px;
}

.apna-rx-requirements {
    background: #f0f7ff;
    border-left: 3px solid #2563eb;
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 18px;
}

.apna-rx-requirements ul {
    margin: 0;
    padding-left: 18px;
    font-size: .88em;
    color: #334155;
    line-height: 1.8;
}

/* Drop zone */
.apna-rx-drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    background: #f8fafc;
    position: relative;
}

.apna-rx-drop-zone:hover,
.apna-rx-drop-zone.apna-rx-drag-over {
    border-color: #2563eb;
    background: #eff6ff;
}

.apna-rx-upload-icon {
    font-size: 40px !important;
    color: #94a3b8;
    display: block;
    margin-bottom: 8px;
}

.apna-rx-drop-zone p {
    color: #64748b;
    font-size: .9em;
    margin: 0 0 10px;
}

.apna-rx-browse-btn {
    display: inline-block;
    background: #2563eb;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: .9em;
    cursor: pointer;
    transition: background .2s;
    text-decoration: none;
}

.apna-rx-browse-btn:hover {
    background: #1d4ed8;
    color: #fff !important;
}

.apna-rx-file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
}

/* Hidden state */
.apna-rx-hidden {
    display: none !important;
}

/* Uploaded notice */
.apna-rx-uploaded-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: .92em;
    color: #065f46;
    margin-bottom: 10px;
}

.apna-rx-uploaded-notice .dashicons {
    color: #10b981;
    font-size: 20px;
}

.apna-rx-change-btn {
    margin-left: auto;
    background: none;
    border: 1px solid #059669;
    color: #059669;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: .82em;
    cursor: pointer;
    transition: all .2s;
}

.apna-rx-change-btn:hover {
    background: #059669;
    color: #fff;
}

/* Progress bar */
.apna-rx-progress {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 10px 0 6px;
    overflow: hidden;
}

.apna-rx-progress-bar {
    height: 100%;
    width: 0;
    background: #2563eb;
    border-radius: 2px;
    transition: width .3s ease;
}

/* Messages */
.apna-rx-message {
    border-radius: 5px;
    padding: 10px 14px;
    font-size: .9em;
    margin-top: 10px;
    display: none;
}

.apna-rx-message.apna-rx-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: block;
}

.apna-rx-message.apna-rx-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}

.apna-rx-message.apna-rx-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    display: block;
}

/* Customer My Account prescription status badge */
.apna-rx-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: .85em;
    font-weight: 600;
    color: #fff;
}

.apna-rx-badge.rx-pending  { background: #f59e0b; }
.apna-rx-badge.rx-approved { background: #10b981; }
.apna-rx-badge.rx-rejected { background: #ef4444; }

.apna-rx-customer-section {
    margin-top: 30px;
}

.apna-rx-customer-section h2 {
    font-size: 1em;
    margin-bottom: 10px;
}
