/* --- Start of assets/css/frontend.css --- */
/* (This file is the same as tax_appeals_css_file_v6_filters) */
/* General Container Styles */
.tam-appeals-list-container,
.tam-form-container {
    font-family: Arial, sans-serif; /* Or your theme's font */
    margin: 20px 0;
    direction: rtl; /* Right-to-left for Arabic */
    text-align: right; /* Align text to the right */
    border: 1px solid #e0e0e0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.tam-form-container h2 { margin-top: 0; margin-bottom: 20px; border-bottom: 1px solid #ddd; padding-bottom: 10px; color: #333; }
/* View Switcher Styles */
.tam-view-switcher { margin-bottom: 20px; text-align: center; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.tam-view-switch-button { margin: 0 5px; background-color: #f0f0f0; border-color: #d1d1d1; color: #333 !important; }
.tam-view-switch-button.active, .tam-view-switch-button:hover { background-color: #007bff; border-color: #0069d9; color: white !important; }
.tam-view-switch-button.active { box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); }
/* Buttons with icons */
.tam-button .dashicons { vertical-align: middle; margin-left: 6px; font-size: 16px; line-height: 1; }
/* Filter Form Styles */
.tam-filters-container { background-color: #f8f9fa; padding: 15px; border-radius: 4px; margin-bottom: 20px; border: 1px solid #e9ecef; }
.tam-filters-container form { display: flex; flex-wrap: wrap; gap: 15px; align-items: flex-end; }
.tam-filter-field { display: flex; flex-direction: column; flex-grow: 1; min-width: 180px; }
.tam-filter-field.tam-search-field { min-width: 220px; } /* Wider search field */
.tam-filter-field label { margin-bottom: 5px; font-size: 0.9em; color: #495057; }
.tam-filter-field input[type="text"], .tam-filter-field input[type="number"], .tam-filter-field input[type="search"], .tam-filter-field select { padding: 8px 10px; border: 1px solid #ced4da; border-radius: 4px; font-size: 14px; box-sizing: border-box; width:100%;}
.tam-filter-field.tam-filter-buttons { flex-grow: 0; min-width: auto; flex-direction: row; gap: 10px;} /* Adjust buttons container */
.tam-filter-field input[type="submit"].tam-button, .tam-filter-field .tam-clear-filters-button { padding: 8px 15px; align-self: flex-end; white-space: nowrap; }
.tam-filter-field .tam-clear-filters-button { background-color: #6c757d; border-color: #5a6268; color: white !important; margin-right: 0; /* Removed margin-right for LTR, adjust if needed for RTL explicitly */}
.tam-filter-field .tam-clear-filters-button:hover { background-color: #5a6268; border-color: #545b62; }
/* Add New Button Container */
.tam-add-new-appeal-container { margin-bottom: 20px; text-align: left; }
/* Button Styles (General) */
.tam-button { display: inline-block; padding: 10px 18px; margin: 5px 0 5px 5px; border: 1px solid #ccc; border-radius: 4px; text-decoration: none; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 1px 2px rgba(0,0,0,0.05); line-height: 1.5; text-align: center; }
.tam-button:hover { text-decoration: none; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.tam-add-new-button, .tam-submit-button { background-color: #28a745; color: white !important; border-color: #218838; }
.tam-add-new-button:hover, .tam-submit-button:hover { background-color: #218838; border-color: #1e7e34; color: white !important; }
.tam-edit-button { background-color: #007bff; color: white !important; border-color: #0069d9; }
.tam-edit-button:hover { background-color: #0069d9; border-color: #0062cc; color: white !important; }
.tam-delete-button { background-color: #dc3545; color: white !important; border-color: #c82333; }
.tam-delete-button:hover { background-color: #c82333; border-color: #bd2130; color: white !important; }
.tam-view-button { background-color: #6c757d; color: white !important; border-color: #5a6268; }
.tam-view-button:hover { background-color: #5a6268; border-color: #545b62; color: white !important; }
/* Table Styles */
.tam-appeals-table { width: 100%; border-collapse: collapse; margin-top: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border-radius: 4px; overflow: hidden; font-size: 14px; background-color: #fff; }
.tam-appeals-table th, .tam-appeals-table td { border: 1px solid #dee2e6; padding: 10px 12px; text-align: right; vertical-align: middle; }
.tam-appeals-table th { background-color: #e9ecef; font-weight: 600; color: #495057; border-bottom-width: 2px; }
.tam-appeals-table tbody tr:nth-child(even) { background-color: #f8f9fa; }
.tam-appeals-table tbody tr:hover { background-color: #e2e6ea; }
/* Responsive table */
@media (max-width: 768px) {
    .tam-appeals-table thead { display: none; }
    .tam-appeals-table, .tam-appeals-table tbody, .tam-appeals-table tr, .tam-appeals-table td { display: block; width: 100%; }
    .tam-appeals-table tr { margin-bottom: 12px; border: 1px solid #dee2e6; border-radius: 4px; overflow: hidden; }
    .tam-appeals-table td { border: none; border-bottom: 1px solid #eee; position: relative; padding-right: 45%; }
    .tam-appeals-table td:last-child { border-bottom: none; }
    .tam-appeals-table td::before { content: attr(data-label); position: absolute; right: 10px; top: 10px; font-weight: 600; color: #495057; }
}
/* Pagination Styles */
.tam-appeals-list-container .pagination { margin-top: 20px; text-align: center; list-style: none; padding-right: 0; }
.tam-appeals-list-container .pagination li { display: inline; }
.tam-appeals-list-container .page-numbers { display: inline-block; padding: 8px 12px; margin: 0 3px 5px 3px; border: 1px solid #ced4da; text-decoration: none; color: #007bff; border-radius: 4px; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.tam-appeals-list-container .page-numbers.current, .tam-appeals-list-container .page-numbers:hover { background-color: #007bff; color: white !important; border-color: #007bff; }
.tam-appeals-list-container .page-numbers.dots { border: none; padding: 8px 0; color: #6c757d; background-color: transparent; }
/* Form Field Styles */
.tam-form-field { margin-bottom: 15px; }
.tam-form-field label { display: block; margin-bottom: 5px; font-weight: 500; color: #495057; }
.tam-form-field input[type="text"], .tam-form-field input[type="number"], .tam-form-field input[type="date"], .tam-form-field input[type="search"], .tam-form-field select, .tam-form-field textarea { width: 100%; padding: 10px; border: 1px solid #ced4da; border-radius: 4px; box-sizing: border-box; font-size: 14px; transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }
.tam-form-field input[type="text"]:focus, .tam-form-field input[type="number"]:focus, .tam-form-field input[type="date"]:focus, .tam-form-field input[type="search"]:focus, .tam-form-field select:focus, .tam-form-field textarea:focus { border-color: #80bdff; outline: 0; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }
.tam-form-field textarea { min-height: 100px; resize: vertical; }
.tam-form-field .tam-required { color: red; margin-left: 2px; }
.tam-form-submit { margin-top: 20px; text-align: left; }
/* Responsive form */
@media (min-width: 768px) {
    .tam-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 1100px) {
    .tam-form-grid { grid-template-columns: repeat(3, 1fr); }
}
/* Alert Messages */
.tam-alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; text-align: center; }
.tam-alert-success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }
.tam-alert-error { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }
/* Toast confirm */
.tam-toast { position: fixed; left: 20px; bottom: 20px; background: #343a40; color: #fff; padding: 12px 14px; border-radius: 6px; box-shadow: 0 6px 14px rgba(0,0,0,.2); z-index: 9999; display: flex; align-items: center; gap: 10px; }
.tam-toast .tam-toast-message { margin: 0; }
.tam-toast .tam-toast-actions { margin-right: auto; display: flex; gap: 8px; }
.tam-toast .tam-button { margin: 0; padding: 6px 10px; border: none; }
.tam-toast .tam-button.tam-confirm { background: #dc3545; }
.tam-toast .tam-button.tam-cancel { background: #6c757d; }
/* File Upload Field Styles */
.tam-form-field .tam-current-attachment { font-size: 0.9em; margin-top: 8px; padding: 8px; background-color: #f0f0f0; border: 1px solid #e0e0e0; border-radius: 3px; }
.tam-form-field .tam-current-attachment a { margin-right: 10px; }
.tam-form-field input[type="file"] { padding: 5px; border: 1px solid #ced4da; background-color: #fff; border-radius: 4px; }
/* Cards View Styles */
.tam-cards-view-container .tam-appeals-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.tam-appeal-card { background-color: #fff; border: 1px solid #ddd; border-radius: 5px; padding: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.08); display: flex; flex-direction: column; justify-content: space-between; }
.tam-appeal-card .tam-card-title { font-size: 1.2em; font-weight: 600; color: #333; margin-top: 0; margin-bottom: 10px; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.tam-appeal-card .tam-card-detail { font-size: 0.9em; color: #555; margin-bottom: 8px; line-height: 1.5; }
.tam-appeal-card .tam-card-detail strong { color: #333; margin-left: 5px; }
.tam-appeal-card .tam-card-date { font-size: 0.8em; color: #777; margin-top: 10px; }
.tam-appeal-card .tam-status { display: inline-block; padding: 3px 8px; border-radius: 3px; font-size: 0.85em; color: #fff; }
.tam-appeal-card .tam-status::before { content: "\f12a"; font-family: dashicons; margin-left: 6px; }
.tam-status-جديد { background-color: #007bff; } .tam-status-قيد-الدراسة { background-color: #ffc107; color: #333 !important; }
.tam-status-مقبول { background-color: #28a745; } .tam-status-مرفوض { background-color: #dc3545; }
.tam-status-مغلق { background-color: #6c757d; } .tam-status-مقبول-جزئياً { background-color: #17a2b8; } 
.tam-status-محول-للجنة { background-color: #fd7e14; } .tam-status-منظور-أمام-المحكمة { background-color: #6610f2; } 
.tam-status-أخرى { background-color: #adb5bd; } 
.tam-appeal-card .tam-card-actions { margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; text-align: left; }
.tam-appeal-card .tam-card-actions .tam-button { margin-right: 5px; margin-left: 0; padding: 6px 12px; font-size: 0.9em; }
/* Kanban View Styles */
.tam-kanban-board { display: flex; flex-direction: row; overflow-x: auto; gap: 15px; padding: 10px 0; min-height: 400px; }
.tam-kanban-column { flex: 0 0 300px; max-width: 320px; background-color: #f0f2f5; border-radius: 5px; padding: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.tam-kanban-column-title { font-size: 1.1em; font-weight: 600; color: #333; margin-top: 0; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #d1d9e0; text-align: center; }
.tam-kanban-column-cards { flex-grow: 1; min-height: 100px; padding: 5px; background-color: #e9ecef; border-radius: 3px; overflow-y: auto; }
.tam-kanban-card { background-color: #ffffff; border: 1px solid #ccd1d9; border-radius: 4px; padding: 10px 12px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0,0,0,0.07); cursor: grab; font-size: 0.9em; }
.tam-kanban-card:last-child { margin-bottom: 0; }
.tam-kanban-card-title { font-size: 1em; font-weight: 500; color: #172b4d; margin-top: 0; margin-bottom: 5px; }
.tam-kanban-card-detail { font-size: 0.85em; color: #505f79; margin-bottom: 3px; }
.tam-kanban-card-detail strong { color: #42526e; }
.tam-kanban-card-edit-link { display: block; margin-top: 8px; font-size: 0.8em; text-align: left; color: #007bff; text-decoration: none; }
.tam-kanban-card-edit-link:hover { text-decoration: underline; }
.tam-kanban-empty-column { color: #6c757d; font-style: italic; text-align: center; padding: 20px 0; }
.tam-kanban-card.dragging { opacity: 0.5; transform: rotate(3deg); }
.tam-kanban-column.drag-over .tam-kanban-column-cards { background-color: #ddeeff; }
/* Loading spinner */
.tam-loading { display: inline-block; width: 18px; height: 18px; border: 2px solid #fff; border-top-color: transparent; border-radius: 50%; animation: tam-spin .8s linear infinite; vertical-align: middle; }
@keyframes tam-spin { to { transform: rotate(360deg); } }
/* --- End of assets/css/frontend.css --- */
/* Additions: status badge in table and notify toast */
.tam-appeals-table .tam-status { display:inline-block; padding: 2px 6px; border-radius: 3px; font-size: .85em; color: #fff; }
.tam-toast.tam-toast-notify { background: #28a745; color:#fff; }
/* Master tabs + modal */
.tam-master { margin: 20px 0; }
.tam-master-header { display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; margin-bottom:10px; }
.tam-master-title { margin:0; font-size:22px; }
.tam-master-actions .tam-button { margin-inline-start:6px; }
.tam-tabs { display:flex; gap:8px; margin:10px 0; }
.tam-tab { background:#e9ecef; border:1px solid #dee2e6; padding:8px 12px; border-radius:4px; cursor:pointer; }
.tam-tab.active { background:#0073aa; color:#fff; border-color:#0073aa; }
.tam-tabs-content { border:1px solid #e0e0e0; background:#fff; border-radius:6px; padding:15px; }
.tam-tab-panel { display:none; }
.tam-tab-panel.active { display:block; }
.tam-modal { position:fixed; inset:0; display:none; z-index:10000; }
.tam-modal.open { display:block; }
.tam-modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.5); }
.tam-modal-dialog { position:relative; width:min(700px, 92vw); max-height:90vh; overflow:auto; margin:5vh auto; background:#fff; border-radius:8px; padding:16px; box-shadow:0 12px 24px rgba(0,0,0,.25); }
.tam-modal-close { position:absolute; top:8px; inset-inline-end:8px; background:transparent; border:none; font-size:24px; line-height:1; cursor:pointer; }
/* Sticky filters in master */
.tam-master-filters { position: sticky; top: 12px; z-index: 9; background:#fff; padding:10px; border:1px solid #e0e0e0; border-radius:6px; box-shadow: 0 1px 3px rgba(0,0,0,.05); margin-bottom: 12px; }
body.admin-bar .tam-master-filters { top: 58px; }
/* Status badge color variants */
.tam-status-pending { background:#ffc107; color:#212529; }
.tam-status-approved { background:#28a745; color:#fff; }
.tam-status-rejected { background:#dc3545; color:#fff; }
/* Arabic status mappings */
.tam-status-جديد { background:#17a2b8; color:#fff; }
.tam-status-قيد-الدراسة { background:#ffc107; color:#212529; }
.tam-status-مقبول { background:#28a745; color:#fff; }
.tam-status-مرفوض { background:#dc3545; color:#fff; }
.tam-status-مغلق { background:#6c757d; color:#fff; }
.tam-status-مقبول-جزئيًا, .tam-status-مقبول-جزئياً, .tam-status-مقبول-جزئيا { background:#20c997; color:#fff; }
.tam-status-محول-للجنة, .tam-status-محوّل-للجنة { background:#6f42c1; color:#fff; }
.tam-status-منظور-أمام-المحكمة, .tam-status-منظور-امام-المحكمة { background:#fd7e14; color:#212529; }
