/* Peace Protocol Admin Styles */

/* Feed Grid */
.peace-feed-grid { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 1.5em; 
    margin: 0 -0.75em; 
}

.peace-feed-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1em;
    margin: 0.75em;
    flex: 1 1 320px;
    min-width: 280px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
}

.peace-feed-card h3 { 
    margin-top: 0; 
    font-size: 1.1em; 
}

.peace-feed-card ul { 
    padding-left: 1.2em; 
    margin: 0; 
}

.peace-feed-card li { 
    margin-bottom: 0.7em; 
}

.peace-feed-card .feed-error { 
    color: #b91c1c; 
    font-size: 0.95em; 
}

.peace-feed-card .unsubscribe-btn { 
    margin-top: 0.7em; 
}

@media (max-width: 700px) {
    .peace-feed-grid { 
        flex-direction: column; 
        gap: 0.5em; 
    }
    .peace-feed-card { 
        max-width: 100%; 
        min-width: 0; 
    }
}

/* Unsubscribe Modal */
#peace-unsub-modal-bg { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(0,0,0,0.5); 
    z-index: 100001; 
    align-items: center; 
    justify-content: center; 
}

#peace-unsub-modal { 
    background: #fff; 
    border-radius: 8px; 
    padding: 2em; 
    max-width: 340px; 
    margin: auto; 
    text-align: center; 
}

#peace-unsub-modal button {
    margin-top: 0.5rem;
    margin-right: 0.5rem;
}

/* Fallback for .button if theme does not style it */
#peace-unsub-modal .button {
    display: inline-block;
    padding: 0.5em 1.2em;
    font-size: 1em;
    border-radius: 4px;
    border: none;
    background: #f3f4f6;
    color: #222;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

#peace-unsub-modal .button-primary {
    background: #2563eb;
    color: #fff;
}

#peace-unsub-modal .button:hover, 
#peace-unsub-modal .button-primary:hover {
    background: #1e40af;
    color: #fff;
}

/* Admin page button styling */
button[name="peaceprotocol_save_settings"] {
    margin-left: 1em;
}

/* Token deletion button styling */
.delete-token-btn {
    color: #dc3232 !important;
    border-color: #dc3232 !important;
}

.delete-token-btn:hover {
    background: #dc3232 !important;
    color: #fff !important;
}

/* Dark mode support for admin unsubscribe modal */
@media (prefers-color-scheme: dark) {
    #peace-unsub-modal {
        background: #222;
        color: #eee;
    }
}

/* Token Management */
.peace-token-list {
    margin: 1em 0;
}

.peace-token-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    background: #fff;
}

.peace-token-text {
    font-family: monospace;
    font-size: 0.875rem;
    color: #374151;
    word-break: break-all;
    flex: 1;
    margin-right: 1rem;
}

.peace-token-actions {
    display: flex;
    gap: 0.5rem;
}

/* Settings Form */
.peace-settings-form {
    max-width: 800px;
}

.peace-settings-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.peace-settings-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2563eb;
}

/* Status Messages */
#peace-protocol-message {
    margin-top: 1em;
    padding: 1rem;
    border-radius: 4px;
}

#peace-protocol-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

#peace-protocol-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

#peace-protocol-message.warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
} 