@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Root variables for consistent theming */
:root {
    --primary-color: #196AB4; /* Softer blue for primary actions */
    --secondary-color: #F5F7FA; /* Light gray for backgrounds */
    --accent-color: #50C878; /* Vibrant green for highlights */
    --error-color: #E53E3E; /* Soft red for errors */
    --success-color: #38A169; /* Green for success */
    --text-color: #2D3748; /* Dark gray for readability */
    --background-color: #FFFFFF; /* Clean white for cards */
    --border-radius: 12px; /* Softer, rounded corners */
    --spacing-unit: 1.75rem; /* Larger spacing for breathing room */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; /* Modern font stack */
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* Subtle shadow for depth */
    --transition: all 0.3s ease; /* Smooth transitions */
}

/* General reset for consistency */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* My css */

#price-per-item h3 {
    font-size: 16px !important;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

/* Frontend Form Styles */
#lbp-multi-step-form {
    max-width: 720px;
    margin: 2rem auto;
    padding: var(--spacing-unit);
    background: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    font-family: var(--font-family);
    color: var(--text-color);
}

/* Progress Bar (from lbp-admin-styles.css) */
.lbp-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.lbp-progress-step {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    background: var(--secondary-color);
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.lbp-progress-step.active {
    background: var(--primary-color);
    color: #fff;
}

.lbp-progress-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1rem;
    width: 1rem;
    height: 2px;
    background: var(--secondary-color);
    z-index: -1;
}

.lbp-progress-step:last-child::after {
    display: none;
}

.lbp-progress-step.active ~ .lbp-progress-step::after {
    background: var(--primary-color);
}

.lbp-step {
    padding: 1.5rem;
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    background: var(--background-color);
    margin-bottom: var(--spacing-unit);
}

.lbp-step h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-family: 'manrope';
    font-weight: 800;
    text-transform: uppercase;
    
}

.lbp-step div {
    margin-bottom: 1.5rem;
}

.lbp-step label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.lbp-step input[type="text"],
.lbp-step input[type="email"],
.lbp-step input[type="tel"],
.lbp-step input[type="number"],
.lbp-step input[type="date"],
.lbp-step select {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #E2E8F0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: #F9FAFB;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 25px;
}

.lbp-step input:focus,
.lbp-step select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.3);
}

.lbp-step input[type="radio"] {
    margin-right: 0.5rem;
}

.lbp-step input.lbp-error,
.lbp-step select.lbp-error {
    border-color: var(--error-color);
    background: #ffebee;
}

.lbp-step .item-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.lbp-step .item-row select,
.lbp-step .item-row input {
    flex: 1;
    min-width: 120px;
}

.lbp-step button,
.lbp-step input[type="submit"] {
    padding: 0.5rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    background: var(--primary-color);
    color: #fff;
}

.lbp-step button:hover,
.lbp-step input[type="submit"] {
    background: #6dcaed;
}

.lbp-next,
.lbp-prev,
.lbp-step input[type="submit"] {
    background-color: #196AB4;
    color: #fff;
}

.lbp-prev {
    background: #A0AEC0;
}

.lbp-next:hover,
.lbp-prev:hover,
.lbp-step input[type="submit"]:hover {
    background: pink;
    transform: translateY(-2px);
}

.remove-item {
    background: #C53030 !important;
    color: #fff;
}

.remove-item:hover {
    background: #C53030;
}

#lbp-message {
    padding: 1rem;
    background: var(--success-color);
    color: #fff;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 1rem;
}

.lbp-review-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.lbp-review-table th,
.lbp-review-table td {
    padding: 1rem;
    border-bottom: 1px solid #E2E8F0;
    text-align: left;
    font-size: 1rem;
}

.lbp-review-table th {
    font-weight: 600;
    color: var(--primary-color);
}

/* Admin Dashboard Styles */
.lbp-admin-wrap {
    max-width: 1500px;
    margin: 2.5rem auto;
    padding: var(--spacing-unit);
    font-family: var(--font-family);
    color: var(--text-color);
    background: var(--secondary-color);
    border-radius: var(--border-radius);
}

.lbp-admin-header {
    background: var(--primary-color);
    color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-unit);
    text-align: center;
}

.lbp-admin-header h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    color: white;
}

.lbp-admin-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.75rem;
}

.lbp-card {
    background: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: var(--spacing-unit);
    margin-bottom: var(--spacing-unit);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lbp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.lbp-card h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #6dcaed;
    padding-bottom: 0.75rem;
    line-height: 1em;
}

.lbp-settings-form label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
    color: var(--text-color);
}

.lbp-settings-form input[type="text"],
.lbp-settings-form input[type="email"],
.lbp-settings-form input[type="number"],
.lbp-settings-form select,
.lbp-settings-form input[type="file"] {
    width: 100%;
    max-width: 450px;
    padding: 0.9rem;
    border: 1px solid #E2E8F0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: #F9FAFB;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lbp-settings-form input:focus,
.lbp-settings-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.3);
}

.lbp-settings-form input[readonly] {
    background: #EDF2F7;
    cursor: not-allowed;
    opacity: 0.8;
}

.lbp-shortcode-input {
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    background: #F1F5F9;
    padding: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background 0.3s ease;
}

.lbp-shortcode-input:hover {
    background: #E2E8F0;
}

.lbp-repeatable {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.lbp-repeatable input {
    flex: 1;
    max-width: 350px;
}

.lbp-add-button,
.lbp-remove,
.lbp-save-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.lbp-add-button {
    background: var(--accent-color);
    color: #fff;
}

.lbp-add-button:hover {
    background: #3ABF70;
    transform: translateY(-2px);
}

.lbp-remove {
    background: var(--error-color);
    color: #fff;
}

.lbp-remove:hover {
    background: #C53030;
}

.lbp-save-button {
    background: var(--primary-color);
    color: #fff;
    padding: 1rem 2rem;
    font-weight: 600;
}

.lbp-save-button:hover {
    background: #3B82F6;
    transform: translateY(-2px);
}

.lbp-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.lbp-orders-table th,
.lbp-orders-table td {
    padding: 1.25rem;
    border-bottom: 1px solid #E2E8F0;
    text-align: left;
    font-size: 0.95rem;
}

.lbp-orders-table th {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.lbp-orders-table tr:nth-child(even) {
    background: #F9FAFB;
}

.lbp-orders-table select {
    padding: 0.6rem;
    border-radius: var(--border-radius);
    border: 1px solid #E2E8F0;
    background: #fff;
}

.lbp-view-details {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.lbp-view-details:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.lbp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lbp-modal-content {
    background: var(--background-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease;
}

.lbp-modal-content h2 {
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.lbp-modal-body p {
    margin: 0.75rem 0;
    line-height: 1.7;
    font-size: 1rem;
}

.lbp-modal-body ul {
    margin: 1.25rem 0;
    padding-left: 1.75rem;
}

.lbp-modal-close {
    background: var(--primary-color);
    color: #fff;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1.5rem;
}

.lbp-modal-close:hover {
    background: var(--accent-color);
}

.lbp-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lbp-loading-spinner .spinner {
    border: 5px solid var(--secondary-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 0.8s linear infinite;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 782px) {
    .lbp-admin-wrap,
    #lbp-multi-step-form {
        padding: 1.25rem;
    }

    .lbp-progress {
        flex-direction: column;
        gap: 0.5rem;
    }

    .lbp-progress-step::after {
        display: none;
    }

    .lbp-orders-table,
    .lbp-review-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .lbp-settings-form input,
    .lbp-step input,
    .lbp-step select {
        max-width: 100%;
        margin-bottom: 15px;
    }


    .lbp-repeatable,
    .lbp-step .item-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .lbp-repeatable input,
    .lbp-step .item-row input,
    .lbp-step .item-row select {
        max-width: 100%;
    }

    .lbp-step button,
    .lbp-step input[type="submit"] {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 600px) {
    .lbp-orders-table th,
    .lbp-orders-table td,
    .lbp-review-table th,
    .lbp-review-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .lbp-orders-table th,
    .lbp-review-table th {
        display: none;
    }

    .lbp-orders-table td:before,
    .lbp-review-table td:before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 0.5rem;
    }

    .lbp-orders-table td,
    .lbp-review-table td {
        padding: 1rem;
        border-bottom: 1px solid #E2E8F0;
    }

    .lbp-admin-header h1 {
        font-size: 1.75rem;
    }

    .lbp-step h2 {
        font-size: 1.5rem;
    }
}