/* ========================================
   Index/List Blade View Styles
   Reusable across all index/list pages
   ======================================== */

/* Header Section */
.index-header {
    margin-bottom: 20px;
}

.index-header-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

/* Filter Section */
.index-filter-section {
    margin-bottom: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
}

.index-filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.index-filter-group {
    margin-right: 10px;
    margin-bottom: 0;
}

.index-filter-group label {
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.index-filter-control {
    min-width: 200px;
}

.index-filter-button {
    padding: 6px 12px;
}

/* Table Styles */
.index-table-responsive {
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.index-table {
    margin-bottom: 0;
    border: 1px solid #e8e8e8;
}

.index-table thead tr {
    background-color: #f8f9fa;
}

.index-table-header {
    vertical-align: middle;
    padding: 10px;
    border: 1px solid #e8e8e8;
    font-weight: 600;
}

.index-table-data {
    padding: 10px;
    border: 1px solid #e8e8e8;
    vertical-align: middle;
}

.index-table-data-bold {
    font-weight: 600;
}

.index-table-data-small {
    font-size: 12px;
    color: #999;
}

/* Column Width Classes */
.index-col-narrow {
    width: 50px;
}

.index-col-id {
    width: 5%;
}

.index-col-name {
    width: 15%;
}

.index-col-medium {
    width: 12%;
}

.index-col-small {
    width: 8%;
}

.index-col-action {
    width: 120px;
}

.index-col-action-large {
    width: 150px;
}

/* Status Badge */
.index-status-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.index-status-success {
    background-color: #5cb85c;
    color: white;
}

.index-status-warning {
    background-color: #f0ad4e;
    color: white;
}

.index-status-danger {
    background-color: #d9534f;
    color: white;
}

.index-status-info {
    background-color: #5bc0de;
    color: white;
}

/* Label Styles */
.index-label {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.index-label-success {
    background-color: #5cb85c;
    color: white;
}

.index-label-info {
    background-color: #5bc0de;
    color: white;
}

.index-label-warning {
    background-color: #f0ad4e;
    color: white;
}

/* Action Buttons */
.index-action-buttons {
    display: flex;
    gap: 2px;
}

.index-action-button {
    padding: 2px 6px;
    font-size: 11px;
}

/* Empty Message */
.index-empty-message {
    padding: 15px;
    background-color: #d9edf7;
    border: 1px solid #bce8f1;
    border-radius: 4px;
    color: #31708f;
    margin-bottom: 20px;
}

.index-empty-icon {
    margin-right: 8px;
}

/* Alert Messages */
.index-alert {
    margin-bottom: 20px;
    border-radius: 8px;
}

.index-alert-success {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}

.index-alert-danger {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}

/* Pagination */
.index-pagination {
    margin-top: 20px;
    text-align: center;
}

/* Text Classes */
.index-text-muted {
    color: #999;
    font-size: 12px;
}

.index-text-center {
    text-align: center;
}

.index-text-right {
    text-align: right;
}

/* Helper Classes */
.index-margin-bottom {
    margin-bottom: 15px;
}

.index-no-margin {
    margin-bottom: 0;
}

/* Row Spacing */
.index-sub-row {
    background-color: #fafafa;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    .index-filter-form {
        flex-direction: column;
        gap: 8px;
    }

    .index-filter-group {
        margin-right: 0;
        width: 100%;
    }

    .index-filter-control {
        width: 100%;
        min-width: auto;
    }

    .index-table {
        font-size: 12px;
    }

    .index-table-header,
    .index-table-data {
        padding: 6px;
    }

    .index-action-buttons {
        flex-direction: column;
        gap: 2px;
    }

    .index-action-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .index-table {
        font-size: 11px;
    }

    .index-table-header,
    .index-table-data {
        padding: 5px;
    }

    .index-col-name {
        width: 25%;
    }

    .index-col-medium {
        width: 15%;
    }

    .index-col-small {
        width: 12%;
    }

    .index-filter-button {
        padding: 6px 8px;
        font-size: 12px;
    }
}
