/**
 * Prescription Bank Frontend Styles
 *
 * @link       https://www.cheapglasses123.com
 * @since      1.0.0
 * @package    Ht_Add_Prescription
 */

/* Save Prescription Modal */
.ht-prx-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ht-prx-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ht-prx-modal-header {
    padding: 20px 25px;
    background: #f0f0f1;
    color: #1d2327;
    border-radius: 10px 10px 0 0;
}

.ht-prx-modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.ht-prx-modal-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.ht-prx-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #1d2327;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.ht-prx-modal-close:hover,
.ht-prx-modal-close:focus {
    opacity: 1;
}

.ht-prx-modal-body {
    padding: 25px;
}

.ht-prx-form-group {
    margin-bottom: 20px;
}

.ht-prx-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.ht-prx-form-group label .required {
    color: #e74c3c;
}

.ht-prx-form-group input,
.ht-prx-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.ht-prx-form-group input:focus,
.ht-prx-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ht-prx-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.ht-prx-modal-footer {
    padding: 20px 25px;
    background-color: #f8f9fa;
    border-radius: 0 0 10px 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.ht-prx-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.ht-prx-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.ht-prx-btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ht-prx-btn-primary {
    background: #2271b1;
    color: #fff;
}

.ht-prx-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ht-prx-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Saved Prescriptions View */
.ht-saved-prx-container {
    padding: 20px;
}

.ht-login-register-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.ht-login-form,
.ht-register-form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ht-login-form h3,
.ht-register-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.ht-no-prescriptions {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #6c757d;
}

.ht-no-prescriptions h3 {
    margin-bottom: 10px;
    color: #495057;
}

.ht-prx-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ht-prx-table thead {
    background: #f0f0f1;
    color: #1d2327;
}

.ht-prx-table th,
.ht-prx-table td {
    padding: 15px;
    text-align: left;
}

.ht-prx-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s;
}

.ht-prx-table tbody tr:hover {
    background-color: #f8f9fa;
}

.ht-prx-table tbody tr:last-child {
    border-bottom: none;
}

.ht-prx-action-btn {
    padding: 8px 16px;
    margin: 0 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.ht-prx-view-btn {
    background-color: #667eea;
    color: white;
}

.ht-prx-view-btn:hover {
    background-color: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.ht-prx-delete-btn {
    background-color: #e74c3c;
    color: white;
}

.ht-prx-delete-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.ht-prx-use-btn {
    background-color: #27ae60;
    color: white;
}

.ht-prx-use-btn:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

/* Prescription View Modal */
.ht-prx-view-modal-body {
    padding: 25px;
}

.ht-prx-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.ht-prx-data-table th,
.ht-prx-data-table td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: left;
}

.ht-prx-data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.ht-prx-image-view {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .ht-prx-modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .ht-login-register-split {
        grid-template-columns: 1fr;
    }

    .ht-prx-modal-footer {
        flex-direction: column;
    }

    .ht-prx-table {
        font-size: 12px;
    }

    .ht-prx-table th,
    .ht-prx-table td {
        padding: 10px 8px;
    }

    .ht-prx-action-btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}

@media screen and (max-width: 480px) {
    .ht-prx-modal-header h2 {
        font-size: 20px;
    }

    .ht-prx-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .ht-prx-table {
        display: block;
        overflow-x: auto;
    }
}

/* Loading Spinner */
.ht-prx-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error Messages */
.ht-prx-error {
    background-color: #fee;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ht-prx-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

