/**
 * GetCristin Assignment Plugin - Public Styles
 * Isolated styles to prevent conflicts with other plugins
 *
 * @package GetCristin_Assignment
 * @since 1.0.0
 */

/* Isolate all styles to prevent conflicts */
body.getcristin-assignment-active .getcristin-assignment-form,
body.getcristin-assignment-active .getcristin-assignment-list,
body.getcristin-assignment-active .getcristin-assignment-item {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: inherit;
    line-height: 1.6;
}

body.getcristin-assignment-active .getcristin-assignment-form .form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    margin-bottom: 20px;
}

body.getcristin-assignment-active .getcristin-assignment-form .form-group {
    flex: 1;
    min-width: 250px;
    padding: 0 10px;
    margin-bottom: 15px;
}

body.getcristin-assignment-active .getcristin-assignment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

body.getcristin-assignment-active .getcristin-assignment-form input[type="text"],
body.getcristin-assignment-active .getcristin-assignment-form input[type="email"],
body.getcristin-assignment-active .getcristin-assignment-form input[type="tel"],
body.getcristin-assignment-active .getcristin-assignment-form input[type="date"],
body.getcristin-assignment-active .getcristin-assignment-form select,
body.getcristin-assignment-active .getcristin-assignment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

body.getcristin-assignment-active .getcristin-assignment-form input:focus,
body.getcristin-assignment-active .getcristin-assignment-form select:focus,
body.getcristin-assignment-active .getcristin-assignment-form textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

body.getcristin-assignment-active .getcristin-assignment-form select[multiple] {
    min-height: 120px;
}

body.getcristin-assignment-active .getcristin-assignment-form small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

body.getcristin-assignment-active .getcristin-assignment-form button {
    background: #0073aa;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

body.getcristin-assignment-active .getcristin-assignment-form button:hover {
    background: #005a87;
}

body.getcristin-assignment-active .getcristin-assignment-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Keyword Selection Modal Styles */
.getcristin-keyword-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.getcristin-keyword-modal.active {
    display: block;
    opacity: 1;
}

.getcristin-keyword-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.getcristin-keyword-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 800px;
    height: 80vh;
    max-height: 600px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.getcristin-keyword-modal.active .getcristin-keyword-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.getcristin-keyword-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.getcristin-keyword-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.getcristin-keyword-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.getcristin-keyword-modal-close:hover {
    background: #e5e5e5;
    color: #333;
}

/* Modal body and content should allow inner scrolling */
.getcristin-keyword-modal-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100% - 140px);
}

.getcristin-keyword-search {
    padding: 16px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.getcristin-keyword-search input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.getcristin-keyword-search input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.getcristin-keyword-tabs {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
    background: #f8f9fa;
}

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

.getcristin-keyword-tab:hover {
    background: #e9ecef;
    color: #333;
}

.getcristin-keyword-tab.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
    background: #fff;
}

.getcristin-keyword-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.getcristin-keyword-section {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    min-height: 0;
    max-height: 100%;
}

.getcristin-keyword-section.active {
    display: block;
}

.getcristin-keyword-loading,
.getcristin-keyword-error,
.getcristin-keyword-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

.getcristin-keyword-error {
    color: #dc3545;
}

.getcristin-keyword-group {
    margin-bottom: 24px;
}

.getcristin-keyword-group-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.getcristin-keyword-group-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.getcristin-keyword-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.getcristin-keyword-item:hover {
    background: #f8f9fa;
    border-color: #0073aa;
}

.getcristin-keyword-checkbox {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #0073aa;
}

.getcristin-keyword-text {
    font-size: 14px;
    color: #333;
    flex: 1;
}

.getcristin-keyword-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.getcristin-selected-keywords {
    font-size: 14px;
    color: #666;
}

.getcristin-selected-count {
    font-weight: 500;
}

.getcristin-keyword-modal-actions {
    display: flex;
    gap: 12px;
}

.getcristin-keyword-modal-cancel,
.getcristin-keyword-modal-save {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.getcristin-keyword-modal-cancel {
    background: #6c757d;
    color: #fff;
}

.getcristin-keyword-modal-cancel:hover {
    background: #5a6268;
}

.getcristin-keyword-modal-save {
    background: #0073aa;
    color: #fff;
}

.getcristin-keyword-modal-save:hover {
    background: #005a87;
}

/* Keyword Display in Form */
.getcristin-keyword-field {
    position: relative;
}

.getcristin-keyword-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 16px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.getcristin-keyword-selector:hover {
    background: #e9ecef;
    border-color: #0073aa;
    color: #0073aa;
}

.getcristin-keyword-selector-text {
    flex: 1;
}

.getcristin-keyword-selector-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.getcristin-keyword-selector:hover .getcristin-keyword-selector-icon {
    transform: rotate(180deg);
}

.getcristin-keyword-display {
    margin-top: 8px;
}

.getcristin-no-keywords {
    color: #666;
    font-style: italic;
    font-size: 14px;
}

.getcristin-keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.getcristin-keyword-tag {
    display: inline-block;
    padding: 4px 8px;
    background: #0073aa;
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Body class for modal open state */
body.getcristin-modal-open {
    overflow: hidden;
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .getcristin-keyword-modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }
    
    .getcristin-keyword-modal-header,
    .getcristin-keyword-modal-footer {
        padding: 16px 20px;
    }
    
    .getcristin-keyword-search {
        padding: 12px 20px;
    }
    
    .getcristin-keyword-section {
        padding: 12px 20px;
    }
    
    .getcristin-keyword-group-items {
        grid-template-columns: 1fr;
    }
    
    .getcristin-keyword-modal-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .getcristin-keyword-modal-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .getcristin-keyword-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .getcristin-keyword-modal-header {
        border-radius: 0;
    }
    
    .getcristin-keyword-modal-footer {
        border-radius: 0;
    }
}

/* Assignment List Styles */
body.getcristin-assignment-active .getcristin-assignment-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

body.getcristin-assignment-active .getcristin-assignment-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

body.getcristin-assignment-active .getcristin-assignment-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

body.getcristin-assignment-active .getcristin-assignment-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

body.getcristin-assignment-active .getcristin-assignment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

body.getcristin-assignment-active .getcristin-assignment-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

body.getcristin-assignment-active .getcristin-assignment-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

body.getcristin-assignment-active .getcristin-assignment-keywords {
    margin-top: 15px;
}

body.getcristin-assignment-active .getcristin-assignment-keywords span {
    display: inline-block;
    background: #f0f0f0;
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin: 2px;
}

body.getcristin-assignment-active .getcristin-assignment-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

body.getcristin-assignment-active .getcristin-assignment-status.draft {
    background: #f0f0f0;
    color: #666;
}

body.getcristin-assignment-active .getcristin-assignment-status.active {
    background: #d4edda;
    color: #155724;
}

body.getcristin-assignment-active .getcristin-assignment-status.closed {
    background: #fff3cd;
    color: #856404;
}

body.getcristin-assignment-active .getcristin-assignment-status.expired {
    background: #f8d7da;
    color: #721c24;
}

/* Filters */
body.getcristin-assignment-active .getcristin-assignment-filters {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

body.getcristin-assignment-active .getcristin-assignment-filters .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

body.getcristin-assignment-active .getcristin-assignment-filters .filter-group {
    flex: 1;
    min-width: 200px;
}

body.getcristin-assignment-active .getcristin-assignment-filters label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

body.getcristin-assignment-active .getcristin-assignment-filters input,
body.getcristin-assignment-active .getcristin-assignment-filters select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

body.getcristin-assignment-active .getcristin-assignment-filters button {
    background: #0073aa;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Pagination */
body.getcristin-assignment-active .getcristin-assignment-pagination {
    text-align: center;
    margin-top: 30px;
}

body.getcristin-assignment-active .getcristin-assignment-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

body.getcristin-assignment-active .getcristin-assignment-pagination .page-numbers:hover,
body.getcristin-assignment-active .getcristin-assignment-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Responsive Design */
@media (max-width: 768px) {
    body.getcristin-assignment-active .getcristin-assignment-form .form-group {
        min-width: 100%;
    }
    
    body.getcristin-assignment-active .getcristin-assignment-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    body.getcristin-assignment-active .getcristin-assignment-filters .filter-group {
        min-width: 100%;
    }
}

/* Loading States */
body.getcristin-assignment-active .getcristin-assignment-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

body.getcristin-assignment-active .getcristin-assignment-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: getcristin-spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes getcristin-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
body.getcristin-assignment-active .getcristin-assignment-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

body.getcristin-assignment-active .getcristin-assignment-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

/* Form Validation Styles */
body.getcristin-assignment-active .getcristin-assignment-form .error {
    border-color: #dc3232 !important;
    box-shadow: 0 0 0 1px #dc3232;
}

body.getcristin-assignment-active .getcristin-assignment-form .error-message {
    color: #dc3232;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

body.getcristin-assignment-active .getcristin-assignment-form .getcristin-assignment-error ul {
    margin: 0;
    padding-left: 20px;
}

body.getcristin-assignment-active .getcristin-assignment-form .getcristin-assignment-error li {
    margin-bottom: 5px;
}

/* Loading and Success States */
body.getcristin-assignment-active .getcristin-assignment-form button:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}

body.getcristin-assignment-active .getcristin-assignment-form .loading-spinner {
    display: inline-block;
    margin-left: 8px;
    font-style: italic;
    color: #fff;
}

body.getcristin-assignment-active .getcristin-assignment-form button.success {
    background: #28a745 !important;
    border-color: #28a745 !important;
}

body.getcristin-assignment-active .getcristin-assignment-form button.success:hover {
    background: #218838 !important;
}

/* Success/Error Messages with Animation */
body.getcristin-assignment-active .getcristin-assignment-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    animation: slideInDown 0.5s ease-out;
}

body.getcristin-assignment-active .getcristin-assignment-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Confirmation Modal Styles */
.getcristin-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.getcristin-confirmation-modal.active {
    display: block;
    opacity: 1;
}

.getcristin-confirmation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.getcristin-confirmation-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.getcristin-confirmation-modal.active .getcristin-confirmation-content {
    transform: translate(-50%, -50%) scale(1);
}

.getcristin-confirmation-header {
    padding: 24px 24px 0 24px;
    text-align: center;
}

.getcristin-confirmation-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #28a745;
}

.getcristin-confirmation-body {
    padding: 20px 24px;
    flex: 1;
}

.getcristin-confirmation-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.getcristin-confirmation-details h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.getcristin-confirmation-item {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.getcristin-confirmation-item:last-child {
    margin-bottom: 0;
}

.getcristin-confirmation-item strong {
    color: #333;
    font-weight: 600;
}

.getcristin-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.getcristin-status-badge.draft {
    background: #f0f0f0;
    color: #666;
}

.getcristin-status-badge.active {
    background: #d4edda;
    color: #155724;
}

.getcristin-status-badge.closed {
    background: #fff3cd;
    color: #856404;
}

.getcristin-status-badge.expired {
    background: #f8d7da;
    color: #721c24;
}

.getcristin-confirmation-message {
    text-align: center;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.getcristin-confirmation-message p {
    margin: 0;
}

.getcristin-confirmation-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px 24px 24px;
    border-top: 1px solid #e5e5e5;
    background: #f8f9fa;
}

.getcristin-confirmation-edit,
.getcristin-confirmation-confirm {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.getcristin-confirmation-edit {
    background: #6c757d;
    color: #fff;
}

.getcristin-confirmation-edit:hover {
    background: #5a6268;
}

.getcristin-confirmation-confirm {
    background: #28a745;
    color: #fff;
}

.getcristin-confirmation-confirm:hover {
    background: #218838;
}

/* Body class for confirmation modal open state */
body.getcristin-confirmation-open {
    overflow: hidden;
}

/* Responsive Design for Confirmation Modal */
@media (max-width: 768px) {
    .getcristin-confirmation-content {
        width: 95%;
        margin: 10px;
    }
    
    .getcristin-confirmation-header,
    .getcristin-confirmation-body,
    .getcristin-confirmation-footer {
        padding: 16px 20px;
    }
    
    .getcristin-confirmation-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .getcristin-confirmation-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        margin: 0;
    }
    
    .getcristin-confirmation-header {
        border-radius: 0;
    }
    
    .getcristin-confirmation-footer {
        border-radius: 0;
    }
}

/* Assignment Save/Favorite Button Styles */
body.getcristin-assignment-active .getcristin-assignment-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

body.getcristin-assignment-active .getcristin-save-assignment {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

body.getcristin-assignment-active .getcristin-save-assignment:hover {
    background: #005a87;
    transform: translateY(-1px);
}

body.getcristin-assignment-active .getcristin-save-assignment.saved {
    background: #28a745;
}

body.getcristin-assignment-active .getcristin-save-assignment.saved:hover {
    background: #218838;
}

body.getcristin-assignment-active .getcristin-save-assignment:before {
    content: '★';
    font-size: 12px;
}

body.getcristin-assignment-active .getcristin-save-assignment.saved:before {
    content: '★';
    color: #fff;
}

/* Assignment item hover effects */
body.getcristin-assignment-active .getcristin-assignment-item:hover .getcristin-assignment-actions {
    opacity: 1;
}

body.getcristin-assignment-active .getcristin-assignment-actions {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Loading state for save button */
body.getcristin-assignment-active .getcristin-save-assignment.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

body.getcristin-assignment-active .getcristin-save-assignment.loading:before {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: getcristin-spin 1s linear infinite;
}

/* Responsive design for save buttons */
@media (max-width: 768px) {
    body.getcristin-assignment-active .getcristin-assignment-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    body.getcristin-assignment-active .getcristin-save-assignment {
        width: 100%;
        justify-content: center;
    }
}

/* Assignment Favorites Page Styles */
body.getcristin-assignment-active .getcristin-assignment-favorites {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

body.getcristin-assignment-active .getcristin-assignment-favorites-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

body.getcristin-assignment-active .getcristin-assignment-favorites-header h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

body.getcristin-assignment-active .getcristin-assignment-favorites-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

body.getcristin-assignment-active .getcristin-assignment-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.getcristin-assignment-active .getcristin-assignment-empty h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

body.getcristin-assignment-active .getcristin-assignment-empty p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

body.getcristin-assignment-active .getcristin-assignment-empty .button {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

body.getcristin-assignment-active .getcristin-assignment-empty .button:hover {
    background: #005a87;
    color: #fff;
    text-decoration: none;
}

/* Keyword more indicator */
body.getcristin-assignment-active .getcristin-keyword-more {
    display: inline-block;
    background: #6c757d;
    color: #fff;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 4px;
}

/* View details button */
body.getcristin-assignment-active .getcristin-assignment-view-details {
    background: #17a2b8;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

body.getcristin-assignment-active .getcristin-assignment-view-details:hover {
    background: #138496;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

 