/**
 * Custom Post Types Manager - Admin Styles
 *
 * Styles for the CPT management interface
 *
 * @package Advanced_Widget_Kit
 * @since 2.1.0
 */

/* ========================================
   CPT LIST PAGE (WordPress Standards)
   ======================================== */

/* ========================================
   EMPTY STATE (WordPress Standard)
   ======================================== */

.awke-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin-top: 20px;
}

.awke-empty-icon {
    margin-bottom: 20px;
}

.awke-empty-icon .dashicons {
    width: 120px;
    height: 120px;
    font-size: 120px;
    color: #c3c4c7;
}

.awke-empty-state h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
}

.awke-empty-state p {
    font-size: 14px;
    color: #646970;
    max-width: 600px;
    margin: 0 auto 20px;
}

.awke-examples {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #dcdcde;
}

.awke-examples h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.awke-examples-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.awke-examples-list li {
    padding: 5px 0;
    color: #646970;
}

.awke-examples-list li .dashicons {
    color: #2271b1;
    vertical-align: middle;
    margin-right: 5px;
}

/* ========================================
   CPT TABLE (WordPress Standard)
   ======================================== */

.wp-list-table .column-icon {
    width: 50px;
    text-align: center;
}

.wp-list-table .column-name {
    width: 25%;
}

.wp-list-table .column-key {
    width: 12%;
}

.wp-list-table .column-description {
    width: 30%;
}

.wp-list-table .column-posts {
    width: 8%;
    text-align: center;
}

.wp-list-table .column-taxonomies {
    width: 15%;
}

.wp-list-table tr.inactive {
    background-color: #fcf9e8;
}

.wp-list-table tr.inactive td {
    opacity: 0.7;
}

.wp-list-table .column-icon .dashicons {
    color: #2271b1;
}

.wp-list-table tr.inactive .column-icon .dashicons {
    color: #8c8f94;
}

/* ========================================
   ADD/EDIT FORM (WordPress Standards)
   ======================================== */

#poststuff {
    padding-top: 10px;
}

#post-body-content {
    margin-bottom: 20px;
}

.postbox .inside {
    margin: 0;
    padding: 12px;
    overflow: hidden;
}

.postbox .inside table.form-table {
    margin-top: 0;
    margin-bottom: 0;
}

.postbox .inside table.form-table th {
    width: 200px;
    padding: 15px 10px;
}

.postbox .inside table.form-table td {
    padding: 15px 10px;
}

/* Sidebar postboxes */
#postbox-container-1 .postbox .inside {
    padding: 12px;
}

/* Sidebar field structure */
.awke-sidebar-field {
    margin-bottom: 15px;
}

.awke-sidebar-field:last-child {
    margin-bottom: 0;
}

.awke-sidebar-field label {
    display: block;
    margin-bottom: 5px;
}

.awke-sidebar-field label strong {
    display: block;
    margin-bottom: 5px;
}

.awke-sidebar-field input[type="text"],
.awke-sidebar-field input[type="number"],
.awke-sidebar-field select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.awke-sidebar-field input[type="checkbox"] {
    margin-right: 6px;
    vertical-align: middle;
}

.awke-sidebar-field .description {
    margin-top: 5px;
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.4;
}

input[readonly] {
    background: #f0f0f0;
    cursor: not-allowed;
}

/* Icon Preview in Sidebar */
.awke-sidebar-field .awke-icon-preview {
    margin-top: 10px;
    padding: 15px;
    background: #f0f0f0;
    text-align: center;
    border-radius: 4px;
}

.awke-sidebar-field .awke-icon-preview .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    display: inline-block;
}

/* Taxonomy Items */
.awke-taxonomy-item {
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.awke-taxonomy-item table.form-table {
    margin: 0;
}

.awke-taxonomy-item table.form-table th {
    width: auto;
    padding: 5px 10px;
}

.awke-taxonomy-item table.form-table td {
    padding: 5px 10px;
}

.awke-remove-taxonomy {
    color: #a00;
}

.awke-remove-taxonomy:hover {
    color: #dc3232;
}

.awke-add-taxonomy .dashicons {
    vertical-align: middle;
    margin-top: -2px;
}

/* Submit Box */
.submitbox #major-publishing-actions {
    padding: 10px;
    border-top: 1px solid #dcdcde;
}

.submitbox #publishing-action {
    text-align: right;
    float: right;
    line-height: 23px;
}

.submitbox .button-primary {
    width: 100%;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 850px) {
    /* Postbox responsive */
    #post-body.columns-2 {
        margin-right: 0;
    }

    #post-body.columns-2 #postbox-container-1 {
        width: 100%;
    }
}

/* ========================================
   LOADING & NOTIFICATIONS
   ======================================== */

.awke-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.awke-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #667eea;
    border-top-color: transparent;
    border-radius: 50%;
    animation: awke-spin 0.6s linear infinite;
}

@keyframes awke-spin {
    to { transform: rotate(360deg); }
}

