/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */
.cplist-wrap {
    margin: 10px 20px 0 2px;
}
.cplist-custom-form-wrapper {
    background: #ffffff;
    padding: 32px;
    border-radius: 18px;
    max-width: 720px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
    border: 1px solid #e6e8eb;
}

.cplist-custom-form-wrapper h2 {
    margin-bottom: 24px;
    font-size: 20px;
    color: #1f1f1f;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 6px;
}

.cplist-custom-form-wrapper .cplist-form-table {
    width: 100%;
}

.cplist-custom-form-wrapper .cplist-form-table th,
.cplist-custom-form-wrapper .cplist-form-table td {
    padding: 14px 10px;
    vertical-align: middle;
}

.cplist-custom-form-wrapper .cplist-form-table th {
    width: 180px;
    text-align: left;
    font-weight: 500;
    color: #2e2e2e;
}

.cplist-custom-form-wrapper input[type="number"],
.cplist-custom-form-wrapper select,
.cplist-custom-form-wrapper input[type="color"] {
    width: 100%;
    max-width: 260px;
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #d0d3d9;
    background: #fdfdfd;
    transition: border-color 0.2s;
}

.cplist-custom-form-wrapper input[type="number"]:focus,
.cplist-custom-form-wrapper select:focus,
.cplist-custom-form-wrapper input[type="color"]:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.cplist-custom-form-wrapper .cplist-description {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.cplist-custom-form-wrapper .cplist-button-primary {
    margin-top: 30px;
    padding: 10px 22px;
    font-size: 15px;
    border-radius: 10px;
    background: #6366f1;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.cplist-custom-form-wrapper .cplist-button-primary:hover {
    background-color: #4f46e5;
}
.cplist-custom-form-wrapper input[type="color"] {
    -webkit-appearance: none;
    border: 1px solid #ccc;
    background: none;
    padding: 0;
    height: 36px;
    width: 60px;
    cursor: pointer;
    border-radius: 6px;
}
.cplist-custom-form-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
.cplist-custom-form-wrapper input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}
.cplist-custom-form-wrapper input[type="color"]:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

/**Listing css**/
.cplist-shortcode-table {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 30px;
    font-family: "Inter", "Segoe UI", sans-serif;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.cplist-shortcode-table table {
    width: 100%;
    border-collapse: collapse;
}

.cplist-shortcode-table thead {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.cplist-shortcode-table th{
    padding: 14px 16px;
}
.cplist-shortcode-table th,
.cplist-shortcode-table td {    
    text-align: center;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.cplist-shortcode-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.cplist-shortcode-table code {
    background: #f3f4f6;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 13px;
    display: inline-block;
    font-family: monospace;
}

.cplist-color-swatch {
    display: inline-block;
    width: 28px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.cplist-copy-btn,
.cplist-action-buttons .cplist-button {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 8px;
    background-color: #f3f4f6;
    color: #333;
    border: 1px solid #d1d5db;
    cursor: pointer;
    transition: background 0.2s;
}

.cplist-copy-btn:hover,
.cplist-action-buttons .cplist-button:hover {
    background-color: #e5e7eb;
}

/* Add button css */
.cplist-btn {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}
.cplist-btn-edit {
    background: #46b450;
    color: #fff;
    margin-right: 5px;
}
.cplist-btn-edit:hover {
    background: #357a38;
}
.cplist-btn-delete {
    background: #b32d2e;
    color: #fff;
}
.cplist-btn-delete:hover {
    background: #7a1b1a;
}
.cplist-action-buttons .cplist-btn {
    margin-top: 3px;
}
/* button css end*/
.cplist-notice {
    margin-top: 20px;
}

.cplist-wp-heading-inline {
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
}
/*CSS for Badges*/
.cplist-field-badge {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px 3px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}
.cplist-field-badge.cplist-enabled {
    background-color: #46b450; /*Green */
}
.cplist-field-badge.cplist-disabled {
    background-color: #777; /*Gray */
}

/*info page css*/
.cplist-info-container {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 10px;
    padding: 25px;
    max-width: 1000px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-top: 20px;
}
.cplist-intro-text {
    font-size: 15px;
    color: #444;
    margin-bottom: 25px;
}
.cplist-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.cplist-card {
    flex: 1 1 300px;
    background: #f8fafc;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
}
.cplist-card:hover {
    background: #ffffff;
    border-color: #c3daf2;
    box-shadow: 0 4px 8px rgba(34,113,177,0.15);
    transform: translateY(-3px);
}
.cplist-card h2 {
    margin-top: 0;
    font-size: 18px;
    color: #2271b1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cplist-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}
.cplist-shortcode {
    display: block;
    background: #f0f0f0;
    padding: 8px 12px;
    border-radius: 6px;
    color: #d6336c;
    font-size: 13px;
}
.cplist-divider {
    margin: 30px 0;
    border-color: #ddd;
}
.cplist-footer-note {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}
@media screen and (max-width: 768px) {
    .cplist-cards {
        flex-direction: column;
    }
    .cplist-card {
        flex: 1 1 100%;
    }
}