/**
 * Admin CSS for Konfidens Appointment Booking
 */

/* General Admin Styles */
.kab-admin {
    margin: 20px 0;
}

.kab-admin h1 {
    margin-bottom: 20px;
}

/* Dashboard Widgets */
.kab-dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.kab-dashboard-widget {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.kab-dashboard-widget-header {
    border-bottom: 1px solid #ccd0d4;
    padding: 8px 12px;
    background: #f8f9fa;
}

.kab-dashboard-widget-header h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.kab-dashboard-widget-content {
    padding: 12px;
}

/* Status Indicators */
.kab-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: 500;
    font-size: 12px;
}

.kab-status-success {
    background-color: #d4edda;
    color: #155724;
}

.kab-status-error {
    background-color: #f8d7da;
    color: #721c24;
}

.kab-notice {
    padding: 10px;
    margin: 10px 0;
    border-left: 4px solid #ccc;
}

.kab-notice-error {
    background-color: #f8d7da;
    border-left-color: #dc3545;
}

/* Settings Sections */
.kab-settings-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    padding: 0 15px 15px;
}

.kab-settings-section h2 {
    margin: 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Shortcode Examples */
.kab-shortcode-example {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.kab-shortcode-example:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.kab-shortcode-example h4 {
    margin: 0 0 5px 0;
}

.kab-shortcode-example code {
    display: block;
    padding: 8px;
    background: #f6f7f7;
    border: 1px solid #ddd;
    margin: 5px 0;
}

/* Modal */
.kab-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.kab-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.kab-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.kab-form-group {
    margin-bottom: 15px;
}

.kab-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Responsive Adjustments */
@media screen and (max-width: 782px) {
    .kab-dashboard-widgets {
        grid-template-columns: 1fr;
    }
    
    .kab-modal-content {
        width: 90%;
        margin: 20% auto;
    }
}
