/**
 * MyParcel Settings 2.0 - Modern Layout
 * Version: 2.0.0
 * Author: Dyronics
 */

/* Main Container */
.wcmp-settings-v2 {
    background: #f8f9fa;
    padding: 20px 0;
}

.wcmp-settings-v2 h1 {
    font-size: 32px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wcmp-settings-v2 h1::before {
    content: "📦";
    font-size: 36px;
}

.wcmp-settings-v2 .wcmp-subtitle {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Navigation Tabs - Modern Card Style */
.wcmp-settings-v2 .nav-tab-wrapper {
    border: none;
    background: transparent;
    margin-bottom: 20px;
    padding: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wcmp-settings-v2 .nav-tab {
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    margin: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wcmp-settings-v2 .nav-tab:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.wcmp-settings-v2 .nav-tab-active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.wcmp-settings-v2 .nav-tab-active:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

/* Form Container - Card Style */
.wcmp-settings-v2 form {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

/* Settings Sections */
.wcmp-settings-v2 .wcmp__settings-section {
    padding: 32px;
    border-bottom: 1px solid #e2e8f0;
}

.wcmp-settings-v2 .wcmp__settings-section:last-child {
    border-bottom: none;
}

.wcmp-settings-v2 .wcmp__settings-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wcmp-settings-v2 .wcmp__settings-section h2::before {
    content: "⚙️";
    font-size: 20px;
}

/* Form Table - Modern Grid Style */
.wcmp-settings-v2 .form-table {
    margin: 0;
    border: none;
}

.wcmp-settings-v2 .form-table tr {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: start;
}

.wcmp-settings-v2 .form-table tr:last-child {
    border-bottom: none;
}

.wcmp-settings-v2 .form-table th {
    font-weight: 600;
    color: #334155;
    font-size: 14px;
    padding: 8px 0;
    text-align: left;
    background: transparent;
}

.wcmp-settings-v2 .form-table td {
    padding: 0;
    background: transparent;
}

/* Input Fields - Modern Style */
.wcmp-settings-v2 input[type="text"],
.wcmp-settings-v2 input[type="email"],
.wcmp-settings-v2 input[type="number"],
.wcmp-settings-v2 input[type="password"],
.wcmp-settings-v2 textarea,
.wcmp-settings-v2 select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1e293b;
    width: 100%;
    max-width: 500px;
}

.wcmp-settings-v2 input[type="text"]:focus,
.wcmp-settings-v2 input[type="email"]:focus,
.wcmp-settings-v2 input[type="number"]:focus,
.wcmp-settings-v2 input[type="password"]:focus,
.wcmp-settings-v2 textarea:focus,
.wcmp-settings-v2 select:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Checkboxes - Modern Toggle Style */
.wcmp-settings-v2 input[type="checkbox"] {
    appearance: none;
    width: 48px;
    height: 26px;
    background: #cbd5e1;
    border-radius: 26px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.wcmp-settings-v2 input[type="checkbox"]:checked {
    background: #3b82f6;
}

.wcmp-settings-v2 input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wcmp-settings-v2 input[type="checkbox"]:checked::before {
    left: 25px;
}

/* Description Text */
.wcmp-settings-v2 .description {
    color: #64748b;
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.6;
}

/* Submit Button - Modern Style */
.wcmp-settings-v2 .button-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    margin: 24px 32px;
}

.wcmp-settings-v2 .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.wcmp-settings-v2 .button-primary:active {
    transform: translateY(0);
}

/* Help Tips */
.wcmp-settings-v2 .woocommerce-help-tip {
    color: #3b82f6;
    font-size: 16px;
    margin-left: 6px;
    cursor: help;
}

/* Select2 Dropdowns */
.wcmp-settings-v2 .select2-container--default .select2-selection--single,
.wcmp-settings-v2 .select2-container--default .select2-selection--multiple {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    min-height: 42px;
}

.wcmp-settings-v2 .select2-container--default.select2-container--focus .select2-selection--single,
.wcmp-settings-v2 .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* License Badge */
.wcmp-settings-v2 .wcmp-license-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 12px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.wcmp-settings-v2 .wcmp-license-badge::before {
    content: "✓";
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wcmp-settings-v2 .form-table tr {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wcmp-settings-v2 input[type="text"],
    .wcmp-settings-v2 input[type="email"],
    .wcmp-settings-v2 input[type="number"],
    .wcmp-settings-v2 input[type="password"],
    .wcmp-settings-v2 textarea,
    .wcmp-settings-v2 select {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .wcmp-settings-v2 {
        padding: 10px;
    }

    .wcmp-settings-v2 .wcmp__settings-section {
        padding: 20px;
    }

    .wcmp-settings-v2 h1 {
        font-size: 24px;
    }

    .wcmp-settings-v2 .nav-tab-wrapper {
        flex-direction: column;
    }

    .wcmp-settings-v2 .nav-tab {
        width: 100%;
        text-align: center;
    }
}

/* Loading State */
.wcmp-settings-v2.loading::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
}

/* Success Message Styling */
.wcmp-settings-v2 .updated,
.wcmp-settings-v2 .notice-success {
    border-left: 4px solid #10b981;
    background: #ecfdf5;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
}

.wcmp-settings-v2 .error,
.wcmp-settings-v2 .notice-error {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
}