/* Admin Panel Styling */
.jcipl-admin-wrap {
    max-width: 1200px;
    margin: 20px 0;
}

.jcipl-admin-wrap h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #1d2327;
}

.jcipl-admin-wrap .description {
    font-size: 16px;
    color: #646970;
    margin-bottom: 30px;
}

/* Upgrade Banner */
.jcipl-upgrade-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    animation: slideIn 0.5s ease-out;
}

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

.jcipl-upgrade-content {
    color: white;
}

.jcipl-upgrade-content h3 {
    margin-top: 0;
    font-size: 26px;
    color: white;
    margin-bottom: 10px;
}

.jcipl-upgrade-content p {
    font-size: 16px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.95);
}

.jcipl-upgrade-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.jcipl-upgrade-content ul li {
    font-size: 15px;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.95);
}

.jcipl-upgrade-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    margin-top: 10px;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.jcipl-upgrade-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    color: #667eea;
    text-decoration: none;
}

.jcipl-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.jcipl-card h2 {
    margin-top: 0;
    font-size: 22px;
    color: #1d2327;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Toggle Switch */
.jcipl-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.jcipl-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.jcipl-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.jcipl-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .jcipl-slider {
    background-color: #2271b1;
}

input:checked + .jcipl-slider:before {
    transform: translateX(26px);
}

/* Image Upload Section */
.jcipl-image-upload {
    max-width: 600px;
}

.jcipl-image-preview {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.jcipl-image-preview img {
    max-width: 100%;
    height: auto;
    border: 2px solid #c3c4c7;
    border-radius: 8px;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.jcipl-remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3232;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.jcipl-remove-image:hover {
    background: #a00;
}

.jcipl-upload-image {
    font-size: 16px;
    padding: 10px 20px;
}

/* Button Settings */
#jcipl_button_text {
    font-size: 15px;
    padding: 8px 12px;
}

/* Preview Card */
.jcipl-preview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.jcipl-preview-card h2 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.jcipl-preview-card p {
    color: rgba(255,255,255,0.9);
}

/* Form Table Improvements */
.form-table th {
    font-weight: 600;
    color: #1d2327;
}

.form-table td .description {
    font-style: italic;
    color: #646970;
}

/* Submit Button */
.jcipl-settings-form .button-primary {
    background: #2271b1;
    border-color: #2271b1;
    font-size: 16px;
    padding: 8px 30px;
    height: auto;
    margin-top: 10px;
}

.jcipl-settings-form .button-primary:hover {
    background: #135e96;
    border-color: #135e96;
}

/* Responsive */
@media (max-width: 782px) {
    .jcipl-card {
        padding: 20px;
    }
    
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
    }
    
    .form-table th {
        padding-bottom: 5px;
    }
    
    .jcipl-upgrade-banner {
        padding: 20px;
    }
    
    .jcipl-upgrade-content h3 {
        font-size: 22px;
    }
}