/* Core Layout */

.mxchat-wrapper, .mxchat-admin-activation {
    width: calc(100% + 40px); /* Add 40px to account for left and right padding */
    margin: 0 -20px; /* Negative margin to counteract the padding */
    padding: 0;
    background-color: #f8f9ff;
    min-height: 100vh;
}

/* Hero Section */
.mxchat-hero {
    text-align: center;
    padding: 3.5rem 2rem;
    position: relative;
    background: #212121;
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1);
    border-image-slice: 1;
}

.mxchat-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(250, 115, 230, 0.08) 0%,
        rgba(120, 115, 245, 0.08) 50%,
        rgba(58, 201, 209, 0.08) 100%
    );
    z-index: 1;
}

div.mxchat-hero h1.mxchat-main-title {
    font-size: 3.5rem;
    margin: 0 0 1.5rem;
    line-height: 1.2;
    color: white;
    position: relative;
    z-index: 2;
}

.mxchat-gradient-text {
    background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 700;
}

.mxchat-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

/* Content Area */
.mxchat-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Card Styles */
.mxchat-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(120, 115, 245, 0.08);
    padding: 30px;
    margin: 30px auto;
    transition: all 0.3s ease;
}

.mxchat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(120, 115, 245, 0.12);
}

.mxchat-card h2 {
    margin: 0 0 1.5rem;
    color: #333;
    font-size: 1.5rem;
}

/* Import Methods */
.mxchat-import-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.mxchat-method-card {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(120, 115, 245, 0.1);
}

.mxchat-method-card h4 {
    color: #333;
    margin: 0 0 10px;
}

.mxchat-method-card p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

/* Tabs */
.mxchat-tabs {
    border-bottom: 1px solid rgba(120, 115, 245, 0.1);
    margin-bottom: 20px;
    display: flex;
    gap: 2px;
}

.mxchat-tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mxchat-tab-button:hover {
    color: #7873f5;
}

.mxchat-tab-button.active {
    color: #7873f5;
    border-bottom-color: #7873f5;
}

/* Toggle Switches */
.mxchat-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.mxchat-toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mxchat-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.mxchat-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mxchat-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.mxchat-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .mxchat-toggle-slider {
    background: linear-gradient(135deg, #fa73e6, #7873f5);
}

input:checked + .mxchat-toggle-slider:before {
    transform: translateX(26px);
}

/* Form Elements */
.mxchat-form-group {
    margin-bottom: 20px;
}

.mxchat-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.mxchat-form-group input[type="text"],
.mxchat-form-group input[type="url"],
.mxchat-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(120, 115, 245, 0.2);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mxchat-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.mxchat-form-group input:focus,
.mxchat-form-group textarea:focus {
    border-color: #7873f5;
    box-shadow: 0 0 0 3px rgba(120, 115, 245, 0.1);
    outline: none;
}

/* URL Input Group */
.mxchat-url-input-group {
    display: flex;
    gap: 10px;
}

.mxchat-url-input-group input {
    flex: 1;
}

/* Buttons */
.mxchat-button-primary {
    background: linear-gradient(135deg, #fa73e6, #7873f5);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mxchat-button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(120, 115, 245, 0.2);
}

.mxchat-button-secondary {
    background: #f8f9ff;
    border: 1px solid rgba(120, 115, 245, 0.2);
    color: #666;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mxchat-button-secondary:hover {
    background: #eef0ff;
}

.mxchat-button-danger {
    color: #ff4d4d;
    background: transparent;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mxchat-button-danger:hover {
    background: #fff5f5;
}

.mxchat-button-icon {
    padding: 8px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.mxchat-button-icon:hover {
    background: #f8f9ff;
    color: #7873f5;
}

/* Table Styles */
.mxchat-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.mxchat-records-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.mxchat-records-table th {
    background: #f8f9ff;
    padding: 15px;
    font-weight: 600;
    color: #333;
    text-align: left;
    border-bottom: 2px solid rgba(120, 115, 245, 0.1);
}

.mxchat-records-table td {
    padding: 15px;
    border-top: 1px solid rgba(120, 115, 245, 0.1);
    vertical-align: top;
}

.mxchat-records-table tr:hover {
    background: rgba(120, 115, 245, 0.03);
}

.mxchat-content-cell {
    max-width: 400px;
}

.mxchat-url-cell a {
    color: #7873f5;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mxchat-url-cell a:hover {
    color: #fa73e6;
}

.mxchat-actions-cell {
    white-space: nowrap;
    display: flex;
    gap: 8px;
}

/* Progress Bar */
.mxchat-progress-bar {
    height: 8px;
    background: rgba(120, 115, 245, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.mxchat-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #fa73e6, #7873f5);
    transition: width 0.3s ease;
}

/* Status Card */
.mxchat-status-card {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.mxchat-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mxchat-status-details {
    margin-top: 10px;
    color: #666;
}

/* Search */
.mxchat-search-form {
    position: relative;
}

.mxchat-search-group {
    position: relative;
    display: flex;
    align-items: center;
}

.mxchat-search-group .dashicons {
    position: absolute;
    left: 12px;
    color: #666;
}

.mxchat-search-group input {
    padding-left: 40px;
    width: 300px;
}

/* Header Actions */
.mxchat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mxchat-header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Pagination */
.mxchat-pagination {
    margin-top: 20px;
    padding-top: 20px;
    text-align: center;
    border-top: 1px solid rgba(120, 115, 245, 0.1);
}

.mxchat-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    margin: 0 4px;
    border-radius: 6px;
    background: white;
    border: 1px solid rgba(120, 115, 245, 0.2);
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mxchat-pagination .page-numbers.current {
    background: linear-gradient(135deg, #fa73e6, #7873f5);
    color: white;
    border: none;
}

/* Responsive Design */
@media screen and (max-width: 782px) {
    div.mxchat-hero h1.mxchat-main-title {
        font-size: 2.5rem;
    }
    
    .mxchat-content {
        padding: 1rem;
    }
    
    .mxchat-card {
        padding: 20px;
    }
    
    .mxchat-card-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .mxchat-header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .mxchat-search-group input {
        width: 100%;
    }
    
    .mxchat-url-input-group {
        flex-direction: column;
    }
    
    .mxchat-records-table {
        display: block;
        overflow-x: auto;
    }

    .mxchat-content-cell {
        max-width: 200px;
    }
}

/* Utility Classes */
.mxchat-na {
    color: #999;
    font-style: italic;
}

.mxchat-no-records {
    text-align: center;
    color: #666;
    padding: 40px !important;
}



.mxchat-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    margin-left: 10px;
}

.mxchat-status-failed {
    background-color: #f44336;
    color: white;
}

.mxchat-status-success {
    background-color: #4caf50;
    color: white;
}
