/* PC Announcements 274 - Admin Styles */

/* Main Container */
.pc-announcements-274-wrap {
    max-width: 1200px;
    margin: 0;
    background: #ffffff;
    color: #000000;
}

/* Cards Layout */
.pc-announcements-274-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    border-radius: 4px;
    color: #000000;
}

.pc-announcements-274-card-header {
    padding: 8px 12px;
    margin: 0;
    line-height: 1.4;
    border-bottom: 1px solid #ccd0d4;
    background: #ffffff;
    border-radius: 4px 4px 0 0;
    color: #000000;
}

.pc-announcements-274-card-header h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.pc-announcements-274-card-body {
    padding: 12px;
    color: #000000;
}

/* Form Layout */
.pc-announcements-274-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.pc-announcements-274-main-content {
    flex: 1;
    min-width: 0;
}

.pc-announcements-274-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.pc-announcements-274-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.pc-announcements-274-form-group {
    flex: 1;
    min-width: 200px;
}

.pc-announcements-274-form-group:last-child {
    margin-bottom: 0;
}

/* Form Elements */
.pc-announcements-274-label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #000000;
    font-size: 14px;
    line-height: 1.4;
}

.pc-announcements-274-label .required {
    color: #d63638;
}

.pc-announcements-274-form input[type="text"],
.pc-announcements-274-form input[type="url"],
.pc-announcements-274-form input[type="datetime-local"],
.pc-announcements-274-form input[type="color"],
.pc-announcements-274-form select {
    width: 100%;
    max-width: 100%;
    padding: 6px 8px;
    line-height: 1.5;
    font-size: 14px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background-color: #fff;
    color: #000000;
    box-shadow: 0 0 0 transparent;
    transition: border-color 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}

.pc-announcements-274-form input[type="text"]:focus,
.pc-announcements-274-form input[type="url"]:focus,
.pc-announcements-274-form input[type="datetime-local"]:focus,
.pc-announcements-274-form input[type="color"]:focus,
.pc-announcements-274-form select:focus {
    color: #000000;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px #2271b1;
    outline: 2px solid transparent;
}

/* Color Picker */
.pc-announcements-274-color-picker {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pc-announcements-274-color-picker input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 2px;
    cursor: pointer;
    border: 1px solid #8c8f94;
    border-radius: 4px;
}

.pc-announcements-274-color-picker input[type="text"] {
    flex: 1;
}

/* Color Picker */
.pc-announcements-274-color-picker {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pc-announcements-274-color-picker input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 2px;
    cursor: pointer;
    border: 1px solid #8c8f94;
    border-radius: 4px;
}

.pc-announcements-274-color-picker input[type="text"] {
    flex: 1;
}

/* Media Upload */
.pc-announcements-274-media-upload {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.pc-announcements-274-media-upload input {
    flex: 1;
}

.pc-announcements-274-upload-image-btn {
    flex-shrink: 0;
    margin-top: 0;
}

.pc-announcements-274-image-preview {
    margin-top: 12px;
    padding: 8px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    background: #fafafa;
}

/* WordPress Editor Integration */
.pc-announcements-274-form .wp-editor-wrap {
    margin-bottom: 0;
}

/* Status Badges */
.pc-announcements-274-active-badge {
    display: inline-block;
    background: #00a32a;
    color: #fff;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
}

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

.pc-announcements-274-status-active {
    background: #00a32a;
    color: #fff;
}

.pc-announcements-274-status-inactive {
    background: #d63638;
    color: #fff;
}

.pc-announcements-274-status-scheduled {
    background: #dba617;
    color: #fff;
}

/* Table Styles */
.pc-announcements-274-wrap .wp-list-table {
    margin: 0;
}

.pc-announcements-274-wrap .wp-list-table .column-title {
    width: 35%;
}

.pc-announcements-274-wrap .wp-list-table .column-status {
    width: 15%;
}

.pc-announcements-274-wrap .wp-list-table .column-date {
    width: 15%;
}

.pc-announcements-274-wrap .wp-list-table .column-actions {
    width: 20%;
}

.pc-announcements-274-wrap .wp-list-table td {
    vertical-align: middle;
}

/* Button Styles */
.pc-announcements-274-delete-btn {
    margin-left: 4px;
    color: #d63638;
    border-color: #d63638;
}

.pc-announcements-274-delete-btn:hover {
    background: #d63638;
    color: #fff;
    border-color: #d63638;
}

/* Publish Actions */
.pc-announcements-274-publish-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.pc-announcements-274-publish-actions .button-primary {
    width: 100%;
    justify-content: center;
}

.pc-announcements-274-publish-actions .button {
    width: 100%;
    justify-content: center;
}

/* Form Info */
.pc-announcements-274-form-info {
    padding-top: 12px;
    border-top: 1px solid #ddd;
    font-size: 12px;
    color: #000000;
}

.pc-announcements-274-form-info p {
    margin: 0 0 4px 0;
}

/* Empty State */
.pc-announcements-274-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #000000;
}

.pc-announcements-274-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.pc-announcements-274-empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #000000;
}

.pc-announcements-274-empty-state p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #000000;
}

/* Modal Styles */
.pc-announcements-274-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 160000;
}

.pc-announcements-274-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.pc-announcements-274-modal-content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    color: #000000;
}

.pc-announcements-274-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #ddd;
}

.pc-announcements-274-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #000000;
}

.pc-announcements-274-modal-body {
    padding: 20px;
}

.pc-announcements-274-modal-body p {
    margin: 0;
    color: #000000;
    line-height: 1.6;
}

.pc-announcements-274-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.pc-announcements-274-modal-footer .button-danger {
    color: #d63638;
    border-color: #d63638;
}

.pc-announcements-274-modal-footer .button-danger:hover {
    background: #d63638;
    color: #fff;
    border-color: #d63638;
}

/* Description Text */
.pc-announcements-274-form .description {
    color: #000000;
    font-size: 12px;
    font-style: italic;
    margin-top: 4px;
    margin-bottom: 0;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .pc-announcements-274-form {
        flex-direction: column;
    }
    
    .pc-announcements-274-sidebar {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .pc-announcements-274-form-row {
        flex-direction: column;
    }
    
    .pc-announcements-274-form-group {
        min-width: 100%;
    }
    
    .pc-announcements-274-media-upload {
        flex-direction: column;
    }
    
    .pc-announcements-274-wrap .wp-list-table .column-title,
    .pc-announcements-274-wrap .wp-list-table .column-status,
    .pc-announcements-274-wrap .wp-list-table .column-date,
    .pc-announcements-274-wrap .wp-list-table .column-actions {
        width: auto;
        display: block;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .pc-announcements-274-card {
        border: 2px solid #000;
    }
    
    .pc-announcements-274-status {
        border: 1px solid #000;
    }
}

/* Dark Mode Support - Override to ensure white background and black text */
@media (prefers-color-scheme: dark) {
    .pc-announcements-274-wrap {
        background: #ffffff;
        color: #000000;
    }
    
    .pc-announcements-274-card {
        background: #ffffff;
        border-color: #ccd0d4;
        color: #000000;
    }
    
    .pc-announcements-274-card-header {
        background: #ffffff;
        border-color: #ccd0d4;
        color: #000000;
    }
    
    .pc-announcements-274-card-header h2,
    .pc-announcements-274-label {
        color: #000000;
    }
    
    .pc-announcements-274-card-body {
        color: #000000;
    }
    
    .pc-announcements-274-form input[type="text"],
    .pc-announcements-274-form input[type="url"],
    .pc-announcements-274-form input[type="datetime-local"],
    .pc-announcements-274-form input[type="color"],
    .pc-announcements-274-form select {
        background: #ffffff;
        border-color: #8c8f94;
        color: #000000;
    }
    
    .pc-announcements-274-form-info {
        color: #000000;
    }
    
    .pc-announcements-274-empty-state {
        color: #000000;
    }
    
    .pc-announcements-274-empty-state h3 {
        color: #000000;
    }
    
    .pc-announcements-274-modal-content {
        background: #ffffff;
        color: #000000;
    }
    
    .pc-announcements-274-modal-header h3 {
        color: #000000;
    }
    
    .pc-announcements-274-modal-body p {
        color: #000000;
    }
}

/* Enforce white background and black text for admin boxes */
.pc-announcements-274-card,
.pc-announcements-274-card-header,
.pc-announcements-274-card-body,
.pc-announcements-274-modal-content,
.pc-announcements-274-image-preview {
    background: #ffffff !important;
    color: #000000 !important;
}

/* Accessibility Improvements */
.pc-announcements-274-form input:focus,
.pc-announcements-274-form select:focus,
.pc-announcements-274-form textarea:focus {
    outline: 2px solid #2271b1;
    outline-offset: 0;
}

/* Animation and Transitions */
.pc-announcements-274-modal {
    animation: pc-announcements-274-fade-in 0.2s ease-out;
}

@keyframes pc-announcements-274-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.pc-announcements-274-modal-content {
    animation: pc-announcements-274-slide-up 0.3s ease-out;
}

@keyframes pc-announcements-274-slide-up {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* Cards Layout */
.pc-announcements-274-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    border-radius: 4px;
}

.pc-announcements-274-card-header {
    padding: 8px 12px;
    margin: 0;
    line-height: 1.4;
    border-bottom: 1px solid #ccd0d4;
    background: #ffffff;
    border-radius: 4px 4px 0 0;
}

.pc-announcements-274-card-header h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.pc-announcements-274-card-body {
    padding: 12px;
}

/* Form Layout */
.pc-announcements-274-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.pc-announcements-274-main-content {
    flex: 1;
    min-width: 0;
}

.pc-announcements-274-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.pc-announcements-274-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.pc-announcements-274-form-group {
    flex: 1;
    min-width: 200px;
}

.pc-announcements-274-form-group:last-child {
    margin-bottom: 0;
}

/* Form Elements */
.pc-announcements-274-label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1d2327;
    font-size: 14px;
    line-height: 1.4;
}

.pc-announcements-274-label .required {
    color: #d63638;
}

.pc-announcements-274-form input[type="text"],
.pc-announcements-274-form input[type="url"],
.pc-announcements-274-form input[type="datetime-local"],
.pc-announcements-274-form select {
    width: 100%;
    max-width: 100%;
    padding: 6px 8px;
    line-height: 1.5;
    font-size: 14px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background-color: #fff;
    color: #1d2327;
    box-shadow: 0 0 0 transparent;
    transition: border-color 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}

.pc-announcements-274-form input[type="text"]:focus,
.pc-announcements-274-form input[type="url"]:focus,
.pc-announcements-274-form input[type="datetime-local"]:focus,
.pc-announcements-274-form select:focus {
    color: #1d2327;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px #2271b1;
    outline: 2px solid transparent;
}

/* Media Upload */
.pc-announcements-274-media-upload {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.pc-announcements-274-media-upload input {
    flex: 1;
}

.pc-announcements-274-upload-image-btn {
    flex-shrink: 0;
    margin-top: 0;
}

.pc-announcements-274-image-preview {
    margin-top: 12px;
    padding: 8px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    background: #fafafa;
}

/* WordPress Editor Integration */
.pc-announcements-274-form .wp-editor-wrap {
    margin-bottom: 0;
}

/* Status Badges */
.pc-announcements-274-active-badge {
    display: inline-block;
    background: #00a32a;
    color: #fff;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
}

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

.pc-announcements-274-status-active {
    background: #00a32a;
    color: #fff;
}

.pc-announcements-274-status-inactive {
    background: #d63638;
    color: #fff;
}

.pc-announcements-274-status-scheduled {
    background: #dba617;
    color: #fff;
}

/* Table Styles */
.pc-announcements-274-wrap .wp-list-table {
    margin: 0;
}

.pc-announcements-274-wrap .wp-list-table .column-title {
    width: 35%;
}

.pc-announcements-274-wrap .wp-list-table .column-status {
    width: 15%;
}

.pc-announcements-274-wrap .wp-list-table .column-date {
    width: 15%;
}

.pc-announcements-274-wrap .wp-list-table .column-actions {
    width: 20%;
}

.pc-announcements-274-wrap .wp-list-table td {
    vertical-align: middle;
}

/* Button Styles */
.pc-announcements-274-delete-btn {
    margin-left: 4px;
    color: #d63638;
    border-color: #d63638;
}

.pc-announcements-274-delete-btn:hover {
    background: #d63638;
    color: #fff;
    border-color: #d63638;
}

/* Publish Actions */
.pc-announcements-274-publish-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.pc-announcements-274-publish-actions .button-primary {
    width: 100%;
    justify-content: center;
}

.pc-announcements-274-publish-actions .button {
    width: 100%;
    justify-content: center;
}

/* Form Info */
.pc-announcements-274-form-info {
    padding-top: 12px;
    border-top: 1px solid #ddd;
    font-size: 12px;
    color: #646970;
}

.pc-announcements-274-form-info p {
    margin: 0 0 4px 0;
}

/* Empty State */
.pc-announcements-274-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #646970;
}

.pc-announcements-274-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.pc-announcements-274-empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #1d2327;
}

.pc-announcements-274-empty-state p {
    margin: 0 0 20px 0;
    font-size: 14px;
}

/* Modal Styles */
.pc-announcements-274-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 160000;
}

.pc-announcements-274-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.pc-announcements-274-modal-content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.pc-announcements-274-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #ddd;
}

.pc-announcements-274-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #1d2327;
}

.pc-announcements-274-modal-body {
    padding: 20px;
}

.pc-announcements-274-modal-body p {
    margin: 0;
    color: #3c434a;
    line-height: 1.6;
}

.pc-announcements-274-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.pc-announcements-274-modal-footer .button-danger {
    color: #d63638;
    border-color: #d63638;
}

.pc-announcements-274-modal-footer .button-danger:hover {
    background: #d63638;
    color: #fff;
    border-color: #d63638;
}

/* Description Text */
.pc-announcements-274-form .description {
    color: #646970;
    font-size: 12px;
    font-style: italic;
    margin-top: 4px;
    margin-bottom: 0;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .pc-announcements-274-form {
        flex-direction: column;
    }
    
    .pc-announcements-274-sidebar {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .pc-announcements-274-form-row {
        flex-direction: column;
    }
    
    .pc-announcements-274-form-group {
        min-width: 100%;
    }
    
    .pc-announcements-274-media-upload {
        flex-direction: column;
    }
    
    .pc-announcements-274-wrap .wp-list-table .column-title,
    .pc-announcements-274-wrap .wp-list-table .column-status,
    .pc-announcements-274-wrap .wp-list-table .column-date,
    .pc-announcements-274-wrap .wp-list-table .column-actions {
        width: auto;
        display: block;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .pc-announcements-274-card {
        border: 2px solid #000;
    }
    
    .pc-announcements-274-status {
        border: 1px solid #000;
    }
}

/* Dark Mode Support (WP 5.4+) */
@media (prefers-color-scheme: dark) {
    .pc-announcements-274-card {
        background: #1e1e1e;
        border-color: #383838;
    }
    
    .pc-announcements-274-card-header {
        background: #2d2d2d;
        border-color: #383838;
    }
    
    .pc-announcements-274-card-header h2,
    .pc-announcements-274-label {
        color: #e0e0e0;
    }
    
    .pc-announcements-274-form input[type="text"],
    .pc-announcements-274-form input[type="url"],
    .pc-announcements-274-form input[type="datetime-local"],
    .pc-announcements-274-form select {
        background: #1e1e1e;
        border-color: #383838;
        color: #e0e0e0;
    }
    
    .pc-announcements-274-form-info {
        color: #b0b0b0;
    }
    
    .pc-announcements-274-empty-state {
        color: #b0b0b0;
    }
    
    .pc-announcements-274-empty-state h3 {
        color: #e0e0e0;
    }
}

/* Accessibility Improvements */
.pc-announcements-274-form input:focus,
.pc-announcements-274-form select:focus,
.pc-announcements-274-form textarea:focus {
    outline: 2px solid #2271b1;
    outline-offset: 0;
}

/* Animation and Transitions */
.pc-announcements-274-modal {
    animation: pc-announcements-274-fade-in 0.2s ease-out;
}

@keyframes pc-announcements-274-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.pc-announcements-274-modal-content {
    animation: pc-announcements-274-slide-up 0.3s ease-out;
}

@keyframes pc-announcements-274-slide-up {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}