/* FivePrayer API Admin Styles */
.fp-api-admin {
    max-width: 1200px;
    margin: 0 auto;
}

.fp-api-header {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.fp-api-header code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.fp-api-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .fp-api-grid {
        grid-template-columns: 1fr;
    }
}

.fp-api-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.fp-api-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #23282d;
    font-size: 1.4em;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.fp-api-card h3 {
    color: #23282d;
    margin-top: 20px;
    margin-bottom: 10px;
}

.fp-form {
    margin-bottom: 20px;
}

.fp-form-group {
    margin-bottom: 15px;
}

.fp-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #23282d;
}

.fp-form-group input,
.fp-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.fp-form-group input:focus,
.fp-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.fp-btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.fp-btn-primary {
    background: #0073aa;
    color: #fff;
}

.fp-btn-primary:hover {
    background: #005a87;
    color: #fff;
}

.fp-btn-danger {
    background: #dc3545;
    color: #fff;
}

.fp-btn-danger:hover {
    background: #c82333;
    color: #fff;
}

.fp-btn-warning {
    background: #ffc107;
    color: #212529;
}

.fp-btn-warning:hover {
    background: #e0a800;
    color: #212529;
}

.fp-btn-small {
    padding: 4px 8px;
    font-size: 12px;
    margin-right: 5px;
}

.fp-result {
    padding: 12px;
    border-radius: 4px;
    margin-top: 15px;
    font-weight: 500;
}

.fp-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.fp-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.fp-api-docs code {
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 4px;
    display: block;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
}

.fp-api-docs ul {
    margin: 15px 0;
    padding-left: 20px;
}

.fp-api-docs li {
    margin-bottom: 8px;
}

.fp-keys-table-container {
    overflow-x: auto;
}

.fp-keys-table {
    margin-top: 20px;
}

.fp-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.fp-status-active {
    background: #d4edda;
    color: #155724;
}

.fp-status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.fp-keys-table code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.fp-keys-table td {
    vertical-align: middle;
}

/* Loading spinner */
.fp-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: fp-spin 1s linear infinite;
}

@keyframes fp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast notification */
.fp-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.fp-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.fp-toast.success {
    background: #28a745;
}

.fp-toast.error {
    background: #dc3545;
}
