/**
 * Article Hub Kanban Board Styles
 */

/* Board Layout */
.ah-kanban-board,
.ah-kanban-board * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ah-kanban-board {
    background: #2C3E50;
    padding: 30px;
}

.ah-board-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 25px 30px;
    background: #34495E;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Header Layout */
.ah-header-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.ah-header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ah-welcome-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ah-board-header h2 {
    margin: 0;
    color: white;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ah-header-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ah-view-options {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.ah-filter-container {
    display: flex;
    align-items: center;
}

.ah-filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    min-width: 150px;
    cursor: pointer;
}

.ah-filter-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Date Range and Filter Row */
.ah-date-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin: 10px 0;
}

/* Date Range Section */
.ah-date-range-section {
    flex: 1;
}

/* Filter Options Section */
.ah-filter-options-section {
    display: flex;
    flex-direction: row;
    gap: 12px;
    min-width: 200px;
}

/* Filter Option - All options look the same */
.ah-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px 18px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    background: #ffffff;
    transition: all 0.2s ease;
    user-select: none;
    min-height: 40px;
}

.ah-filter-option:hover {
    background: rgba(52, 152, 219, 0.05);
    border-color: #3498DB;
}

.ah-filter-option input[type="radio"],
.ah-filter-option input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: #3498DB;
    cursor: pointer;
}

.ah-filter-option label {
    font-size: 12px;
    color: #2C3E50;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

.ah-filter-option input[type="radio"]:checked + label,
.ah-filter-option input[type="checkbox"]:checked + label {
    color: #3498DB;
    font-weight: 600;
}

.ah-filter-option input[type="radio"]:checked,
.ah-filter-option input[type="checkbox"]:checked {
    transform: scale(1.1);
}

.ah-filter-option:has(input[type="radio"]:checked),
.ah-filter-option:has(input[type="checkbox"]:checked) {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498DB;
}

.ah-view-toggle-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ah-toggle-label {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* Toggle Switch Styles */
.ah-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

.ah-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ah-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #34495E;
    transition: 0.3s;
    border-radius: 24px;
    border: 2px solid #5D6D7E;
}

.ah-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.ah-toggle-switch input:checked + .ah-toggle-slider {
    background-color: #2ECC71;
    border-color: #27AE60;
}

.ah-toggle-switch input:checked + .ah-toggle-slider:before {
    transform: translateX(26px);
}

.ah-board-columns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

/* Column Styles */
.ah-column {
    background: #34495E;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    min-height: 500px;
    overflow: hidden;
}

.ah-column h3 {
    margin: 0;
    padding: 15px 20px;
    text-align: left;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ah-column-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    backdrop-filter: blur(2px);
}

/* Column Color Coding */
.ah-column-bullpen h3 {
    background: #3498DB;
}

.ah-column-assigned h3 {
    background: #ee75b1;
}

.ah-column-draft-review h3 {
    background: #F1C40F;
    color: #333;
}

.ah-column-final-review h3 {
    background: #2ECC71;
}

.ah-column-pending-release h3 {
    background: #1e8449;
}

/* Tickets Container */
.ah-tickets {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #34495E;
}

/* Ticket Styles */
.ah-ticket {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 22px;
    cursor: grab;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: relative;
}

.ah-ticket:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    border-color: #dee2e6;
}

.ah-ticket:active {
    cursor: grabbing;
}

.ah-ticket.ah-dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.ah-ticket.ah-overdue {
    background: #E74C3C;
    color: white;
}

.ah-ticket.ah-overdue .ah-ticket-title,
.ah-ticket.ah-overdue .ah-ticket-hook,
.ah-ticket.ah-overdue .ah-ticket-notes,
.ah-ticket.ah-overdue .ah-ticket-assignee {
    color: white;
}



.ah-ticket.ah-overdue .ah-ticket-action-btn {
    background: #C0392B;
}

.ah-ticket.ah-overdue .ah-ticket-action-btn:hover {
    background: #A93226;
}

.ah-overdue-alert {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #E74C3C;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Overdue Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Ticket Header */
.ah-ticket-header {
    margin-bottom: 12px;
}

.ah-ticket-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #2C3E50;
    line-height: 1.3;
    cursor: pointer;
    transition: color 0.2s ease;
}

.ah-ticket-title:hover {
    color: #3498DB;
}

/* Ticket Content */
.ah-ticket-content {
    margin-bottom: 16px;
}

.ah-ticket-hook {
    font-size: 14px;
    color: #495057;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.ah-ticket-notes {
    font-size: 13px;
    color: #6c757d;
    margin: 0 0 12px 0;
    line-height: 1.4;
    font-style: italic;
}

.ah-ticket-assignee {
    font-size: 13px;
    color: #495057;
    margin-bottom: 0;
    padding: 4px 0;
}

/* Ticket Due Date Section */
.ah-ticket-due-date-section {
    padding: 8px 12px;
    background: #c8c8c8;
    border-top: 1px solid #e9ecef;
    margin: 0 -16px;
}

.ah-ticket-due-date {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    text-align: center;
}

/* Ticket Footer */
.ah-ticket-footer {
    margin-top: 0;
}

.ah-ticket-action-section {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.ah-ticket-action-btn {
    background: #3498DB;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
    width: 100%;
}

.ah-ticket-action-btn:hover {
    background: #2980B9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.ah-ticket-action-btn.ah-btn-secondary {
    background: #95A5A6;
    box-shadow: 0 2px 4px rgba(149, 165, 166, 0.2);
}

.ah-ticket-action-btn.ah-btn-secondary:hover {
    background: #7F8C8D;
    box-shadow: 0 4px 8px rgba(149, 165, 166, 0.3);
}

.ah-ticket-action-btn.ah-btn-danger {
    background: #E74C3C;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

.ah-ticket-action-btn.ah-btn-danger:hover {
    background: #C0392B;
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.ah-ticket-info-bar {
    background: #e9ecef;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #495057;
    margin: 0 -16px -16px -16px;
    border-radius: 0 0 8px 8px;
}



.ah-ticket-info-actions {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    width: 100%;
}

.ah-ticket-info-btn {
    background: #d5d9dd;
    border: 1px solid #c8ccd0;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 5px;
    transition: all 0.2s ease;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
}

.ah-ticket-info-btn:hover {
    background: #c8ccd0;
    border-color: #b0b5ba;
    color: #333;
}

.ah-ticket-info-btn i {
    font-size: 14px;
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Pro', sans-serif;
    position: relative;
}

.ah-delete-btn:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.ah-comment-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #E74C3C;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1;
    min-width: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: commentCountPulse 0.3s ease-out;
}

@keyframes commentCountPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Comments Modal Styles */
.ah-comments-container {
    display: flex;
    flex-direction: column;
    height: 1000px;
    max-height: 70vh;
}

.ah-comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    max-height: 800px;
}

.ah-comment {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.ah-comment:last-child {
    margin-bottom: 0;
}

.ah-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
}

.ah-comment-author {
    font-weight: 600;
    color: #2c3e50;
}

.ah-comment-date {
    color: #6c757d;
    font-size: 11px;
}

.ah-comment-content {
    color: #495057;
    line-height: 1.5;
    font-size: 14px;
}

.ah-no-comments {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
}

.ah-add-comment-section {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #e9ecef;
}

.ah-add-comment-section .ah-form-group {
    margin-bottom: 15px;
}

.ah-add-comment-section textarea {
    min-height: 80px;
    resize: vertical;
}

/* Delete Modal Styles */
.ah-modal-body {
    padding: 20px;
}

.ah-delete-warning {
    color: #dc3545;
    font-weight: 600;
    margin: 15px 0 10px 0;
}

.ah-delete-details {
    background: #f8f9fa;
    border-left: 4px solid #dc3545;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
    list-style: none;
}

.ah-delete-details li {
    margin-bottom: 8px;
    color: #495057;
    padding-left: 0;
}

.ah-delete-details li:last-child {
    margin-bottom: 0;
}

.ah-modal-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.ah-btn-danger {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.ah-btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.ah-btn-warning {
    background-color: #ffc107;
    color: #212529;
    border: 1px solid #ffc107;
}

.ah-btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

/* Revision Request Modal Styles */
.ah-revision-ticket-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
}

.ah-revision-ticket-info h4 {
    margin: 0 0 10px 0;
    color: #2C3E50;
    font-size: 18px;
    font-weight: 600;
}

.ah-revision-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    box-sizing: border-box;
}

.ah-revision-form textarea:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.25);
}

.ah-revision-form {
    margin-bottom: 20px;
}

.ah-revision-form p {
    margin-bottom: 10px;
    font-weight: 500;
    color: #2C3E50;
}

/* External Link Styles */
.ah-external-link {
    color: #007cba;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s ease;
}

.ah-external-link:hover {
    color: #005a87;
    border-bottom-color: #005a87;
    text-decoration: none;
}

.ah-external-link:visited {
    color: #6f42c1;
}

.ah-external-link:visited:hover {
    color: #5a32a3;
    border-bottom-color: #5a32a3;
}



/* Drag and Drop States */
.ah-column.ah-drag-over {
    background-color: #f8f9fa;
    border: 2px dashed #007cba;
}

.ah-column.ah-drag-invalid {
    background-color: #fff5f5;
    border: 2px dashed #dc3545;
    opacity: 0.7;
}

/* Modal Styles */
.ah-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.ah-modal-content {
    background: white;
    border-radius: 8px;
    padding: 0;
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    margin: 20px;
    box-sizing: border-box;
}

.ah-modal-header {
    padding: 24px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.ah-modal-header h3 {
    margin: 0;
    color: #2C3E50;
    font-size: 22px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ah-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.ah-close:hover {
    color: #333;
}

/* Readonly Fields */
.ah-readonly-field {
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    font-size: 14px;
    min-height: 20px;
    display: flex;
    align-items: center;
}

/* External Link Button */
.ah-ticket-info-btn[href*="post.php"] {
    text-decoration: none !important;
    width: 30px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    font-size: inherit !important;
    line-height: 1 !important;
}

.ah-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.ah-modal-close:hover {
    background-color: #f8f9fa;
}

.ah-modal-body {
    padding: 0 20px;
}

.ah-ticket-detail-section {
    margin-bottom: 20px;
}

.ah-ticket-detail-section h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ah-ticket-detail-section p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #2C3E50;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.ah-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid #e9ecef;
    margin-top: 20px;
}

.ah-modal-footer-left {
    display: flex;
    gap: 10px;
}

.ah-modal-footer-right {
    display: flex;
    gap: 10px;
}

/* Form Styles */
.ah-modal form {
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
}

.ah-form-group {
    margin-bottom: 24px;
    box-sizing: border-box;
    width: 100%;
}

.ah-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2C3E50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ah-form-group input,
.ah-form-group textarea,
.ah-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.ah-form-group input:hover,
.ah-form-group textarea:hover,
.ah-form-group select:hover {
    background: #ffffff;
    border-color: #dee2e6;
}

.ah-form-group textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.ah-form-group input:focus,
.ah-form-group textarea:focus,
.ah-form-group select:focus {
    outline: none;
    border-color: #3498DB;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Input with icon styling */
.ah-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.ah-input-with-icon input {
    padding-right: 40px;
}

.ah-input-with-icon i {
    position: absolute;
    right: 12px;
    color: #6c757d;
    pointer-events: none;
    font-size: 16px;
}

.ah-input-with-icon input:focus + i {
    color: #3498DB;
}

/* Button Styles */
.ah-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ah-btn-primary {
    background: #3498DB;
    color: white;
}

.ah-btn-primary:hover {
    background: #2980B9;
    transform: translateY(-1px);
}

.ah-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.ah-btn-secondary:hover {
    background: #e0e0e0;
}

.ah-btn-danger {
    background: #dc3545;
    color: white;
}

.ah-btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.ah-btn-success {
    background: #28a745;
    color: white;
}

.ah-btn-success:hover {
    background: #218838;
    transform: translateY(-1px);
}

.ah-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 12px;
}

.ah-form-actions .ah-btn {
    min-width: 120px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ah-form-actions .ah-btn-primary {
    background: #3498DB;
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.ah-form-actions .ah-btn-primary:hover {
    background: #2980B9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.ah-form-actions .ah-btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.ah-form-actions .ah-btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #dee2e6;
}

/* Notification Styles */
.ah-notification {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    padding: 10px 16px;
    border-radius: 8px 8px 0 0;
    color: white;
    font-weight: 500;
    font-size: 13px;
    z-index: 1001;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    max-width: 400px;
    min-width: 300px;
}

.ah-notification.show {
    transform: translateX(-50%) translateY(0);
}

.ah-notification.ah-success {
    background: #28a745;
}

.ah-notification.ah-error {
    background: #dc3545;
}

/* Flatpickr Custom Styling */
.flatpickr-calendar {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
    border: none !important;
}

.flatpickr-calendar.open {
    z-index: 1002 !important;
}

.flatpickr-day.selected {
    background: #3498DB !important;
    border-color: #3498DB !important;
}

.flatpickr-day.selected:hover {
    background: #2980B9 !important;
    border-color: #2980B9 !important;
}

.flatpickr-day.today {
    border-color: #3498DB !important;
}

.flatpickr-time input {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px !important;
}

.flatpickr-time input:hover {
    background: #f8f9fa !important;
}

.flatpickr-time input:focus {
    background: #ffffff !important;
    border-color: #3498DB !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .ah-board-columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .ah-date-filter-row {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .ah-filter-options-section {
        min-width: auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .ah-filter-option {
        flex: 1;
        min-width: 120px;
        padding: 8px 12px;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .ah-board-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .ah-board-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ah-board-header {
        flex-direction: column;
        gap: 12px;
        text-align: left;
        padding: 14px 16px;
        margin-bottom: 20px;
    }

    .ah-board-header h2 {
        font-size: 20px;
        margin-bottom: 0;
    }

    .ah-header-left,
    .ah-header-right {
        width: 100%;
    }

    .ah-welcome-section {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
    }

    .ah-welcome-section .ah-user-info {
        font-size: 15px;
    }

    .ah-view-options {
        padding: 10px 12px;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
        flex-wrap: wrap;
    }

    .ah-view-toggle-container {
        gap: 10px;
        flex: 1 1 100%;
        justify-content: center;
    }

    .ah-toggle-label {
        font-size: 13px;
    }

    .ah-toggle-switch {
        width: 40px;
        height: 20px;
    }

    .ah-toggle-slider:before {
        height: 14px;
        width: 14px;
    }

    /* Two filter selects side-by-side */
    .ah-filter-container {
        flex: 1;
        min-width: 0;
    }

    .ah-filter-select {
        width: 100%;
        min-width: 0;
        font-size: 13px;
        padding: 7px 10px;
    }

    #ah-new-ticket {
        padding: 8px 14px;
        font-size: 13px;
    }

    .ah-header-right .ah-btn-secondary {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .ah-notification {
        font-size: 12px;
        padding: 8px 12px;
        max-width: 350px;
        min-width: 250px;
    }
    
    .ah-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .ah-form-actions {
        flex-direction: column;
    }
    
    .ah-form-actions .ah-btn {
        width: 100%;
    }
    
    .ah-ticket {
        padding: 15px;
    }
    
    .ah-ticket-actions-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .ah-ticket-action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Loading States */
.ah-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty State */
.ah-column-empty {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-style: italic;
}

/* Comments Section */
.ah-comments {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.ah-comment {
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #007cba;
}

.ah-comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
    color: #666;
}

.ah-comment-author {
    font-weight: 600;
    color: #333;
}

.ah-comment-content {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

/* Approve Modal Styles */
.ah-approve-ticket-info {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.ah-approve-ticket-info h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.ah-ticket-meta {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.ah-approve-actions {
    margin-bottom: 25px;
}

.ah-approve-actions p {
    margin: 0 0 15px 0;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.ah-approve-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ah-btn-full {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ah-btn-full:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ah-no-post-warning {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    text-align: center;
    color: #856404;
}

.ah-no-post-warning i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.ah-no-post-warning p {
    margin: 5px 0;
    font-size: 14px;
}

.ah-no-post-warning p:first-of-type {
    font-weight: 600;
}

/* Modal footer improvements for approve modal */
.ah-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid #e1e5e9;
    background: #f8f9fa;
}

.ah-modal-footer .ah-btn {
    min-width: 120px;
}

/* Responsive adjustments for approve modal */
@media (max-width: 768px) {
    .ah-approve-action-buttons {
        gap: 10px;
    }
    
    .ah-btn-full {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .ah-modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .ah-modal-footer .ah-btn {
        width: 100%;
        min-width: auto;
    }
}

/* Schedule Modal Styles */
.ah-schedule-ticket-info {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.ah-schedule-ticket-info h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.ah-schedule-checklist {
    margin-bottom: 25px;
}

.ah-schedule-checklist h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.ah-schedule-checklist p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.ah-checklist-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ah-checklist-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.ah-checklist-item:hover {
    border-color: #007cba;
    background: #f8f9fa;
}

.ah-checklist-item input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #28a745;
}

.ah-checklist-item input[type="checkbox"]:checked + .ah-checklist-text {
    color: #28a745;
    font-weight: 600;
}

.ah-checklist-text {
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
}

.ah-schedule-date-section {
    margin-bottom: 25px;
}

.ah-schedule-date-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.ah-help-text {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
    font-style: italic;
}

.ah-btn-disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.ah-btn-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Progress indicator for checklist */
.ah-checklist-progress {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
}

.ah-checklist-progress .ah-progress-bar {
    flex: 1;
    height: 6px;
    background: #e1e5e9;
    border-radius: 3px;
    margin: 0 10px;
    overflow: hidden;
}

.ah-checklist-progress .ah-progress-fill {
    height: 100%;
    background: #28a745;
    transition: width 0.3s ease;
}

/* Responsive adjustments for schedule modal */
@media (max-width: 768px) {
    .ah-checklist-items {
        gap: 10px;
    }
    
    .ah-checklist-item {
        padding: 10px 12px;
    }
    
    .ah-checklist-item input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
    
    .ah-checklist-text {
        font-size: 13px;
    }
}

/* Scheduled Publication Display Styles */
.ah-scheduled-publication {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    min-height: 60px;
    justify-content: center;
    transition: all 0.3s ease;
    width: 1005;
}

.ah-scheduled-publication.ah-scheduled {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ah-scheduled-publication.ah-published {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.ah-scheduled-publication.ah-error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.ah-publication-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ah-publication-status i {
    font-size: 14px;
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Pro', sans-serif;
}

.ah-clock-icon {
    font-size: 14px;
    line-height: 1;
}

.ah-publication-date {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.ah-publication-countdown {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 400;
}

/* Hover effects */
.ah-scheduled-publication.ah-scheduled:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.ah-scheduled-publication.ah-published:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

/* Validation error styles */
.ah-validation-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ah-validation-error::before {
    content: "⚠";
    font-size: 14px;
}

/* Responsive adjustments for scheduled publication */
@media (max-width: 768px) {
    .ah-scheduled-publication {
        padding: 10px 12px;
        min-height: 50px;
    }
    
    .ah-publication-status {
        font-size: 11px;
    }
    
    .ah-publication-date {
        font-size: 13px;
    }
    
    .ah-publication-countdown {
        font-size: 10px;
    }
}

/* Compact View Styles */
.ah-compact-view .ah-ticket {
    padding: 12px 15px;
    min-height: auto;
}

.ah-compact-view .ah-ticket-content {
    display: none;
}

.ah-compact-view .ah-ticket-footer {
    display: none;
}

.ah-compact-view .ah-ticket-header {
    margin-bottom: 0;
}

.ah-compact-view .ah-ticket-title {
    font-size: 14px;
    margin-bottom: 8px;
    cursor: pointer;
}

.ah-compact-view .ah-ticket-compact-content {
    display: block !important;
}

.ah-compact-view .ah-ticket-compact-assignee {
    font-size: 12px;
    color: #495057;
    margin-bottom: 8px;
}

.ah-compact-view .ah-ticket.ah-overdue .ah-ticket-compact-assignee {
    color: white;
}

.ah-compact-view .ah-ticket-compact-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.ah-compact-view .ah-ticket-compact-action .ah-ticket-action-btn {
    padding: 4px 8px;
    font-size: 11px;
    min-width: auto;
}

/* Modal Tabs Styles */
.ah-modal-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    background-color: #f9f9f9;
}

.ah-tab-button {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.ah-tab-button:hover {
    background-color: #f0f0f0;
    color: #333;
}

.ah-tab-button.ah-tab-active {
    color: #0073aa;
    border-bottom-color: #0073aa;
    background-color: white;
}

.ah-tab-content {
    display: none;
    padding: 20px;
}

.ah-tab-content.ah-tab-active {
    display: block;
}

/* Log Styles - Timeline Design */
.ah-log-entries {
    max-height: 400px;
    overflow-y: auto;
    padding: 0 20px;
}

.ah-log-entry {
    position: relative;
    padding: 16px 0 16px 32px;
    border-left: 2px solid #e9ecef;
    margin-bottom: 0;
}

.ah-log-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.ah-log-entry::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 20px;
    width: 10px;
    height: 10px;
    background: #0073aa;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #0073aa;
}

.ah-log-entry:last-child::before {
    background: #28a745;
    box-shadow: 0 0 0 2px #28a745;
}

.ah-log-entry:last-child {
    border-left-color: transparent;
}

.ah-log-content {
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #f1f3f4;
}

.ah-log-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.ah-log-action {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.ah-log-time {
    font-size: 11px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
    white-space: nowrap;
    font-weight: 500;
}

.ah-log-user {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ah-log-user::before {
    content: '👤';
    font-size: 14px;
}

.ah-log-details {
    font-size: 13px;
    color: #495057;
    background-color: #f8f9fa;
    padding: 10px 12px;
    border-radius: 6px;
    border-left: 3px solid #0073aa;
    margin-top: 8px;
}

.ah-log-field-changes {
    margin-top: 6px;
}

.ah-log-field-change {
    margin-bottom: 4px;
    font-size: 12px;
    padding: 4px 8px;
    background: #e3f2fd;
    border-radius: 4px;
    border-left: 2px solid #2196f3;
}

.ah-log-assignment,
.ah-log-scheduling,
.ah-log-checklist {
    font-weight: 500;
    color: #0073aa;
}

.ah-log-checklist-changes {
    margin-top: 6px;
}

.ah-log-checklist-change {
    font-size: 12px;
    padding: 3px 6px;
    margin-bottom: 2px;
    border-radius: 3px;
    font-weight: 500;
}

.ah-checklist-checked {
    background-color: #d4edda;
    color: #155724;
    border-left: 2px solid #28a745;
}

.ah-checklist-unchecked {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 2px solid #dc3545;
}

.ah-log-raw-details {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 11px;
    background-color: #f8f9fa;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    overflow-x: auto;
}

.ah-log-loading,
.ah-log-empty,
.ah-log-error {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

.ah-log-error {
    color: #dc3545;
}

/* Timeline connector lines */
.ah-log-entry:not(:last-child)::after {
    content: '';
    position: absolute;
    left: -1px;
    top: 30px;
    bottom: -16px;
    width: 2px;
    background: #e9ecef;
}

/* Status-based Timeline Colors */
.ah-color-bullpen::before {
    background: #3898FF !important;
    box-shadow: 0 0 0 2px #3898FF !important;
}

.ah-color-assigned::before {
    background: #FF2D55 !important;
    box-shadow: 0 0 0 2px #FF2D55 !important;
}

.ah-color-draft_review::before {
    background: #FFCC00 !important;
    box-shadow: 0 0 0 2px #FFCC00 !important;
}

.ah-color-final_review::before {
    background: #C7FF00 !important;
    box-shadow: 0 0 0 2px #C7FF00 !important;
}

.ah-color-pending_release::before {
    background: #00C851 !important;
    box-shadow: 0 0 0 2px #00C851 !important;
}

.ah-color-published::before {
    background: #20c997 !important;
    box-shadow: 0 0 0 2px #20c997 !important;
}

.ah-color-deleted::before {
    background: #dc3545 !important;
    box-shadow: 0 0 0 2px #dc3545 !important;
}

.ah-color-updated::before {
    background: #6c757d !important;
    box-shadow: 0 0 0 2px #6c757d !important;
}

.ah-color-unknown::before {
    background: #343a40 !important;
    box-shadow: 0 0 0 2px #343a40 !important;
}

/* Status-based Border Colors for cards */
.ah-border-left-color-bullpen .ah-log-details {
    border-left-color: #3898FF;
}

.ah-border-left-color-assigned .ah-log-details {
    border-left-color: #FF2D55;
}

.ah-border-left-color-draft_review .ah-log-details {
    border-left-color: #FFCC00;
}

.ah-border-left-color-final_review .ah-log-details {
    border-left-color: #C7FF00;
}

.ah-border-left-color-pending_release .ah-log-details {
    border-left-color: #00C851;
}

.ah-border-left-color-published .ah-log-details {
    border-left-color: #20c997;
}

.ah-border-left-color-deleted .ah-log-details {
    border-left-color: #dc3545;
}

.ah-border-left-color-updated .ah-log-details {
    border-left-color: #6c757d;
}

.ah-border-left-color-unknown .ah-log-details {
    border-left-color: #343a40;
}

/* ========================================
   LOGIN FORM STYLES
   ======================================== */

.ah-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
    background: #2C3E50;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ah-login-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.ah-login-header h2 {
    color: #333;
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ah-login-header p {
    color: #666;
    margin: 0 0 2rem 0;
    font-size: 0.95rem;
}

.ah-login-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.ah-login-form {
    text-align: left;
}

.ah-form-group {
    margin-bottom: 1.5rem;
}

.ah-form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.ah-form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.ah-form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ah-form-input::placeholder {
    color: #999;
}

.ah-form-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ah-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    flex-direction: row;
}

.ah-checkbox-label .ah-checkbox {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
    accent-color: #3498DB;
    order: -1;
}

.ah-checkbox-text {
    user-select: none;
}

.ah-btn-full {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #3498DB;
    color: white;
}

.ah-btn-full:hover {
    background: #2980B9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.ah-btn-full:active {
    transform: translateY(0);
}

.ah-login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e5e9;
    text-align: center;
}

.ah-login-footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
}

.ah-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ah-link:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* User controls in header */
.ah-user-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Welcome section styling */
.ah-welcome-section .ah-user-info {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 500;
}

/* Hide author-specific controls for authors */
.ah-kanban-board[data-user-role="author"] .ah-filter-container,
.ah-kanban-board[data-user-role="author"] #ah-new-ticket {
    display: none !important;
}

/* Style non-draggable tickets for authors */
.ah-kanban-board[data-user-role="author"] .ah-ticket {
    cursor: default;
}

.ah-kanban-board[data-user-role="author"] .ah-ticket:hover {
    transform: none;
}

/* Urgent ticket styling */
.ah-ticket.urgent {
    border-left: 4px solid #ffc300;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.ah-ticket.urgent .ah-ticket-title {
    color: #C9980B;
    font-weight: 600;
}

.ah-ticket.urgent .ah-ticket-meta {
    color: #a93226;
}

/* As Needed ticket styling — muted appearance */
.ah-ticket.as-needed {
    border-left: 4px solid #ccc;
    background: #f9f9f9;
    opacity: 0.8;
}

.ah-ticket.as-needed .ah-ticket-title {
    color: #888;
    font-weight: 400;
}

.ah-ticket.as-needed .ah-ticket-content,
.ah-ticket.as-needed .ah-ticket-meta {
    color: #aaa;
}

.ah-ticket.as-needed .ah-ticket-action-btn {
    background: #ccc;
    color: #666;
}

.ah-ticket.as-needed .ah-ticket-action-btn:hover {
    background: #bbb;
}

/* Priority alert label at bottom of card */
.ah-priority-alert {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ah-priority-urgent {
    background: #ffc300;
    color: white;
}

.ah-priority-as-needed {
    background: #ccc;
    color: #555;
    text-transform: none;
    font-weight: 600;
}

/* Priority selector in forms */
.ah-priority-selector {
    display: flex;
    gap: 8px;
}

.ah-priority-option {
    flex: 1;
    cursor: pointer;
}

.ah-priority-option input[type="radio"] {
    display: none;
}

.ah-priority-choice {
    display: block;
    text-align: center;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #fff;
}

.ah-priority-choice:hover {
    border-color: #ccc;
    background: #fafafa;
}

.ah-priority-option input[type="radio"]:checked + .ah-priority-choice-none {
    border-color: #007cba;
    background: #f0f8ff;
    color: #007cba;
    font-weight: 600;
}

.ah-priority-option input[type="radio"]:checked + .ah-priority-choice-urgent {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #fff0f0 0%, #ffffff 100%);
    color: #c0392b;
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.ah-priority-option input[type="radio"]:checked + .ah-priority-choice-as-needed {
    border-color: #999;
    background: #f5f5f5;
    color: #666;
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.ah-btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.ah-btn-secondary:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .ah-login-container {
        padding: 1rem;
        min-height: 50vh;
    }
    
    .ah-login-box {
        padding: 2rem;
    }
    
    .ah-login-header h2 {
        font-size: 1.5rem;
    }
    
    .ah-user-controls {
        flex-direction: column;
        gap: 0.5rem;
        margin-left: 0;
        margin-top: 1rem;
    }
}

/* Header responsive adjustments */
@media (max-width: 768px) {
    .ah-header-right {
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }

    .ah-view-options {
        flex-wrap: wrap;
        flex: 1 1 100%;
    }
}

/* Author Report Details Styling */
.ah-details-container {
    font-size: 0.9em;
    line-height: 1.4;
    max-width: 300px;
}

.ah-detail-item {
    display: block;
    margin-bottom: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #007cba;
}

.ah-detail-item:last-child {
    margin-bottom: 0;
}

.ah-detail-item strong {
    color: #333;
    font-weight: 600;
}

.ah-change-old {
    color: #d63638;
    text-decoration: line-through;
    background: #fef2f2;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.85em;
}

.ah-change-new {
    color: #00a32a;
    background: #f0f9ff;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 500;
}

.ah-status-old {
    color: #8c8f94;
    font-style: italic;
}

.ah-status-new {
    color: #007cba;
    font-weight: 500;
}

.ah-priority-badge-urgent {
    background: #d63638;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ah-priority-badge-as-needed {
    background: #ccc;
    color: #555;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Responsive adjustments for details */
@media (max-width: 768px) {
    .ah-details-container {
        max-width: 200px;
        font-size: 0.8em;
    }
    
    .ah-detail-item {
        padding: 0.2rem 0.4rem;
    }
}

/* Fix WordPress admin footer overlay issue */
#wpfooter {
    position: relative !important;
    bottom: auto !important;
    margin-top: 40px !important;
}

/* ===== Topic Circles on Ticket Cards ===== */

.ah-ticket-topics {
    position: absolute;
    left: -10px;
    bottom: -12px;
    display: flex;
    align-items: center;
    z-index: 5;
}

/* Topics display inside the detail modal (not absolute) */
.ah-detail-topics {
    display: flex;
    align-items: center;
    padding: 4px 0;
}

.ah-detail-topic-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.ah-topic-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

/* ===== Wide Ticket Modal 2-Column Grid ===== */

.ah-modal-content-wide {
    max-width: 820px !important;
}

.ah-ticket-form-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 0 24px;
}

.ah-ticket-form-grid .ah-form-full {
    grid-column: 1 / -1;
}

.ah-ticket-form-grid .ah-form-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Tighter form groups inside the ticket grid */
.ah-ticket-form-grid .ah-form-group {
    margin-bottom: 14px;
}

.ah-ticket-form-grid .ah-form-group label {
    margin-bottom: 5px;
    font-size: 11px;
}

.ah-ticket-form-grid .ah-form-group input,
.ah-ticket-form-grid .ah-form-group textarea,
.ah-ticket-form-grid .ah-form-group select {
    padding: 9px 12px;
    font-size: 14px;
}

.ah-ticket-form-grid .ah-form-group textarea {
    min-height: 80px;
}

.ah-ticket-form-grid .ah-priority-choice {
    padding: 8px 10px;
    font-size: 12px;
}

.ah-ticket-form-grid .ah-topic-list {
    max-height: 150px;
}

.ah-ticket-form-grid .ah-topic-row {
    padding: 6px 10px;
}

.ah-ticket-form-grid .ah-topic-row-img {
    width: 24px;
    height: 24px;
}

/* Stack columns on narrow viewports */
@media (max-width: 780px) {
    .ah-ticket-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Topic Selector in Modals (searchable list) ===== */

.ah-topic-selected-count {
    font-size: 11px;
    font-weight: normal;
    color: #8c8f94;
    margin-left: 6px;
}

.ah-topic-selector {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.ah-topic-search-wrap {
    position: relative;
    border-bottom: 1px solid #e9ecef;
}

.ah-topic-search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c8f94;
    font-size: 13px;
    pointer-events: none;
}

.ah-topic-search {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    padding: 10px 12px 10px 34px !important;
    font-size: 13px !important;
    outline: none !important;
    box-shadow: none !important;
}

.ah-topic-search:focus {
    box-shadow: none !important;
    border: none !important;
}

.ah-topic-list {
    max-height: 220px;
    overflow-y: auto;
}

.ah-topic-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.12s ease;
    user-select: none;
    border-bottom: 1px solid #f5f5f5;
}

.ah-topic-row:last-child {
    border-bottom: none;
}

.ah-topic-row:hover {
    background: #f8f9fa;
}

.ah-topic-row.active {
    background: #f0f8ff;
}

.ah-topic-row input[type="checkbox"] {
    display: none;
}

.ah-topic-row-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e9ecef;
}

.ah-topic-row-name {
    flex: 1;
    font-size: 13px;
    color: #1d2327;
}

.ah-topic-row.active .ah-topic-row-name {
    font-weight: 600;
    color: #007cba;
}

.ah-topic-row-count {
    font-size: 11px;
    color: #8c8f94;
    background: #f0f0f1;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.ah-topic-row.active .ah-topic-row-count {
    background: #d6ecfa;
    color: #007cba;
}

.ah-topic-row-check {
    color: #007cba;
    font-size: 12px;
    width: 14px;
    opacity: 0;
}

.ah-topic-row.active .ah-topic-row-check {
    opacity: 1;
}

.ah-topic-no-results {
    padding: 20px;
    text-align: center;
    color: #8c8f94;
    font-size: 12px;
    font-style: italic;
}

.ah-topic-empty {
    padding: 12px;
    background: #f8f9fa;
    border: 1px dashed #dcdcde;
    border-radius: 6px;
    color: #646970;
    font-size: 12px;
    margin: 0;
}