/* Platform Announcements Frontend Styles */
.pa-frontend-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent;
}

.pa-frontend-header {
    background: white;
    padding: 24px 32px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e5e7eb;
    width: 100%;
    box-sizing: border-box;
}

.pa-frontend-header-content {
    flex: 1;
}

.pa-frontend-title {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1d;
    margin: 0 0 8px 0;
}

.pa-frontend-icon {
    font-size: 20px;
    margin-right: 12px;
}

.pa-frontend-subtitle {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.pa-frontend-new-announcement-btn {
    background: #1d4ed8;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pa-frontend-new-announcement-btn:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

.pa-frontend-btn-icon {
    font-size: 16px;
    font-weight: bold;
}

/* Inline Form Styles */
.pa-frontend-form-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.pa-frontend-form-header {
    background: #f8f9fa;
    padding: 20px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.pa-frontend-form-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1d;
}

.pa-frontend-inline-form {
    padding: 24px 32px;
}

.pa-frontend-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.pa-frontend-form-group {
    display: flex;
    flex-direction: column;
}

.pa-frontend-form-group-title {
    flex: 2;
}

.pa-frontend-form-group-audience {
    flex: 1;
}

.pa-frontend-form-group-priority {
    flex: 1;
}

.pa-frontend-form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.pa-frontend-form-group input,
.pa-frontend-form-group textarea,
.pa-frontend-form-group select {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: white;
}

.pa-frontend-form-group input:focus,
.pa-frontend-form-group textarea:focus,
.pa-frontend-form-group select:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.pa-frontend-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.pa-frontend-form-bottom-row {
    align-items: flex-end;
    margin-bottom: 0;
}

.pa-frontend-form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pa-frontend-cancel-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pa-frontend-cancel-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.pa-frontend-publish-btn {
    background: #1d4ed8;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pa-frontend-publish-btn:hover {
    background: #1e40af;
}

.pa-frontend-publish-icon {
    font-size: 14px;
}

/* .pa-frontend-announcements {

} */

.pa-frontend-announcement-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.pa-frontend-announcement-item:hover {
    background-color: #f9fafb;
}

.pa-frontend-announcement-item:last-child {
    border-bottom: none;
}

.pa-frontend-announcement-content {
    flex: 1;
}

.pa-frontend-announcement-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.pa-frontend-announcement-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1d;
    margin: 0;
}

.pa-frontend-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pa-frontend-badge {
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.pa-frontend-badge-active {
    background: #10b981;
    color: white;
}

.pa-frontend-badge-inactive {
    background: #64748b;
    color: white;
}

.pa-frontend-badge-draft {
    background: #f59e0b;
    color: white;
}

.pa-frontend-badge-priority-high {
    background: #ef4444;
    color: white;
}

.pa-frontend-badge-priority-medium {
    background: #3b82f6;
    color: white;
}

.pa-frontend-badge-priority-low {
    background: #10b981;
    color: white;
}

.pa-frontend-badge-audience {
    background: #7c3aed;
    color: white;
}

.pa-frontend-announcement-description {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
    margin: 8px 0;
}

.pa-frontend-announcement-meta {
    color: #9ca3af;
    font-size: 12px;
}

.pa-frontend-announcement-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.pa-frontend-action-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.pa-frontend-action-btn:hover {
    background-color: #f3f4f6;
}

button.pa-frontend-delete-btn:hover {
    background-color: #dc2e36!important;
    color: #fff!important;
}

.pa-frontend-no-announcements {
    text-align: center;
    padding: 40px 32px;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pa-frontend-container {
        padding: 15px;
    }
    
    .pa-frontend-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px 24px;
    }
    
    .pa-frontend-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .pa-frontend-form-bottom-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .pa-frontend-form-actions {
        justify-content: flex-end;
    }
    
    .pa-frontend-announcement-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 16px 24px;
    }
    
    .pa-frontend-announcement-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Animation for loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pa-frontend-announcement-item {
    animation: fadeInUp 0.6s ease forwards;
}

.pa-frontend-announcement-item:nth-child(2) {
    animation-delay: 0.1s;
}

.pa-frontend-announcement-item:nth-child(3) {
    animation-delay: 0.2s;
}

.pa-frontend-announcement-item:nth-child(4) {
    animation-delay: 0.3s;
}

/* Access Denied Styling */
.pa-access-denied {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    margin: 20px 0;
}

/* Delete Confirmation Popup Styles */
.pa-delete-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pa-delete-overlay-show {
    opacity: 1;
}

.pa-delete-popup {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
}

.pa-delete-popup-show {
    transform: scale(1) translateY(0);
}

.pa-delete-header {
    padding: 24px 24px 16px 24px;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
}

.pa-delete-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.pa-delete-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.pa-delete-content {
    padding: 20px 24px;
    text-align: center;
}

.pa-delete-content p {
    margin: 0 0 8px 0;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.5;
}

.pa-delete-warning {
    font-size: 14px !important;
    color: #ef4444 !important;
    font-weight: 500;
}

.pa-delete-actions {
    padding: 16px 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.pa-delete-cancel-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pa-delete-cancel-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.pa-delete-confirm-btn {
    background: #ef4444;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pa-delete-confirm-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}