/* Edocman Lite Admin Styles */

/* General Admin Styles */
.edocman-lite-admin {
    max-width: 100%;
}

.wrap h1 {
    margin-bottom: 20px;
}

/* Table Styles */
.wp-list-table {
    margin-top: 20px;
}

.wp-list-table .column-title {
    width: 30%;
}

.wp-list-table .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Form Styles */
.form-table th {
    padding: 20px 10px 20px 0;
    width: 200px;
}

.form-table td {
    padding: 15px 10px;
}

.form-table .required {
    color: red;
}

.form-table input[type="text"],
.form-table input[type="number"],
.form-table textarea,
.form-table select {
    width: 100%;
    max-width: 500px;
}

.form-table .description {
    margin-top: 5px;
    color: #666;
    font-style: italic;
}

/* Button Styles */
.page-title-action {
    margin-left: 10px;
}

.button.button-primary {
    margin-right: 10px;
}

/* Image Preview */
#category_image_preview img,
#document_image_preview img {
    max-width: 150px;
    height: auto;
    margin-top: 10px;
    border: 1px solid #ddd;
    padding: 5px;
}

/* Notice Styles */
.notice {
    margin: 15px 0;
}

/* Category List */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background: #fff;
}

.category-item .category-image img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.category-item .category-title {
    margin: 10px 0;
    font-size: 18px;
}

.category-item .category-description {
    color: #666;
    font-size: 14px;
}

/* Search and Filter */
.tablenav {
    margin: 15px 0;
}

.tablenav.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tablenav .actions {
    margin-right: 10px;
}

.tablenav select {
    margin-right: 5px;
}

.search-box {
    margin: 0;
}

.search-box input[type="search"] {
    width: 250px;
    margin-right: 5px;
}

/* Row Actions */
.row-actions {
    color: #999;
}

.row-actions span {
    display: inline-block;
}

.row-actions a {
    text-decoration: none;
}

.row-actions a:hover {
    color: #0073aa;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
    }
}

/* ============================================================
   Categories Form — Folder Path UI
   ============================================================ */

/* Full path display box */
.edocman-path-display {
    background: #f9f9f9;
    padding: 8px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    font-family: monospace;
}

/* Parent path row */
.edocman-parent-path-section {
    margin-bottom: 10px;
}

/* Folder name row */
.edocman-folder-name-section {
    margin-bottom: 10px;
}

/* Shared label style for path rows */
.edocman-field-label {
    display: inline-block;
    width: 100px;
    font-weight: bold;
    vertical-align: middle;
}

/* Readonly input (parent path display) */
.edocman-readonly-field {
    background: #f0f0f0;
    color: #666;
}

/* ============================================================
   Categories Form — Image Preview
   ============================================================ */

.edocman-image-preview {
    margin-top: 10px;
}

.edocman-preview-img {
    max-width: 150px;
    display: block;
}


/* ============================================================
   Configuration Page
   ============================================================ */

/* Writable path warning */
.edocman-notice-error {
    color: #d63638;
}

/* File types checkbox grid */
.edocman-file-types-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.edocman-file-type-label {
    min-width: 80px;
}

/* Dashicon inside file type label */
.edocman-type-icon {
    vertical-align: middle;
}

/* Version status badges */
.edocman-version-outdated {
    color: #d63638;
    font-weight: bold;
}

.edocman-version-current {
    color: #00a32a;
}

/* ============================================================
   Documents Form
   ============================================================ */

/* Wide select dropdowns (main & additional categories) */
.edocman-select-wide {
    min-width: 300px;
}
