/**
 * Club Directory Manager - Admin CSS
 */

/* Meta box styling */
.cdm-meta-box .form-table th {
    width: 150px;
    font-weight: 600;
}

.cdm-meta-box .form-table td {
    padding: 15px 10px;
}

.cdm-meta-box .form-table input[type="text"],
.cdm-meta-box .form-table input[type="email"],
.cdm-meta-box .form-table input[type="url"],
.cdm-meta-box .form-table input[type="time"],
.cdm-meta-box .form-table select,
.cdm-meta-box .form-table textarea {
    width: 100%;
    max-width: 400px;
}

.cdm-meta-box .form-table textarea {
    height: 80px;
    resize: vertical;
}

.cdm-meta-box .required {
    color: #d63638;
    font-weight: bold;
}

.cdm-meta-box .description {
    font-style: italic;
    color: #666;
    margin-top: 5px;
}

/* Admin columns */
.column-cdm_meeting_time,
.column-cdm_emirate,
.column-cdm_division,
.column-cdm_area {
    width: 120px;
}

.column-cdm_club_number {
    width: 100px;
}

/* Club list table enhancements */
.wp-admin .widefat .column-cdm_meeting_time {
    text-align: center;
}

.wp-admin .widefat .column-cdm_division,
.wp-admin .widefat .column-cdm_area {
    text-align: center;
    font-weight: bold;
}

/* Meta box sections */
.cdm-meta-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
}

.cdm-meta-section h4 {
    margin-top: 0;
    color: #0073aa;
}

/* Validation styling */
.cdm-field-error {
    border-color: #d63638 !important;
    box-shadow: 0 0 2px rgba(214, 54, 56, 0.3);
}

.cdm-error-message {
    color: #d63638;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Success messages */
.cdm-success {
    background: #d7eddb;
    border-left: 4px solid #00a32a;
    padding: 12px;
    margin: 10px 0;
}

.cdm-success p {
    margin: 0;
    color: #00a32a;
}

/* Import/Export section */
.cdm-import-export {
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    padding: 20px;
    margin: 20px 0;
}

.cdm-import-export h3 {
    margin-top: 0;
}

.cdm-import-export .button {
    margin-right: 10px;
}

/* Help text styling */
.cdm-help-text {
    background: #f0f6fc;
    border-left: 4px solid #72aee6;
    padding: 12px;
    margin: 15px 0;
}

.cdm-help-text h4 {
    margin-top: 0;
    color: #0073aa;
}

.cdm-help-text ul {
    margin-left: 20px;
}

.cdm-help-text li {
    margin-bottom: 5px;
}

/* Quick edit styling */
.quick-edit-row .cdm-quick-edit {
    display: inline-block;
    margin-right: 15px;
}

.quick-edit-row .cdm-quick-edit label {
    display: block;
    margin-bottom: 3px;
    font-weight: 600;
}

.quick-edit-row .cdm-quick-edit select,
.quick-edit-row .cdm-quick-edit input {
    width: 150px;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .cdm-meta-box .form-table th,
    .cdm-meta-box .form-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .cdm-meta-box .form-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }
    
    .cdm-meta-box .form-table input[type="text"],
    .cdm-meta-box .form-table input[type="email"],
    .cdm-meta-box .form-table input[type="url"],
    .cdm-meta-box .form-table input[type="time"],
    .cdm-meta-box .form-table select,
    .cdm-meta-box .form-table textarea {
        max-width: 100%;
    }
}