/* Admin Settings Page Styles */
.urlshbym-admin-container {
    max-width: 1200px;
}

.urlshbym-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin: 20px 0;
    padding: 20px;
}

.urlshbym-card h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.urlshbym-card .description {
    margin-bottom: 15px;
    color: #646970;
}

/* Bulk Actions */
.urlshbym-bulk-actions h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.urlshbym-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.urlshbym-generate-bulk {
    position: relative;
}

.urlshbym-generate-bulk .count {
    font-size: 11px;
    color: #646970;
}

.urlshbym-generate-bulk:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.urlshbym-generate-bulk.loading {
    position: relative;
    color: transparent;
}

.urlshbym-generate-bulk.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #2271b1;
    border-top-color: transparent;
    border-radius: 50%;
    animation: urlshbym-spin 0.6s linear infinite;
}

@keyframes urlshbym-spin {
    to {
        transform: rotate(360deg);
    }
}

#urlshbym-bulk-result,
#urlshbym-delete-all-result {
    margin-top: 20px;
    padding: 12px;
    border-left: 4px solid #72aee6;
    background: #f0f6fc;
}

#urlshbym-bulk-result.success,
#urlshbym-delete-all-result.success {
    border-left-color: #00a32a;
    background: #f0f6f0;
}

#urlshbym-bulk-result.error,
#urlshbym-delete-all-result.error {
    border-left-color: #d63638;
    background: #fcf0f1;
}

/* Info Card */
.urlshbym-info-card {
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
}

.urlshbym-info-card ul {
    margin: 10px 0;
    padding-left: 20px;
}

.urlshbym-info-card li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Danger Zone */
.urlshbym-danger-zone {
    background: #fff8f8;
    border: 1px solid #d63638;
    border-left: 4px solid #d63638;
}

.urlshbym-danger-zone h2 {
    color: #b32d2e;
    border-bottom-color: #f1c1c2;
}

.urlshbym-danger-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
}

.urlshbym-danger-item + .urlshbym-danger-item,
#urlshbym-delete-all-result + .urlshbym-danger-item {
    border-top: 1px solid #f1c1c2;
}

.urlshbym-danger-text p {
    margin: 4px 0;
}

.urlshbym-danger-text .description {
    margin-bottom: 0;
}

.urlshbym-button-danger.button {
    color: #d63638;
    background: #fff;
    border-color: #d63638;
}

.urlshbym-button-danger.button:hover,
.urlshbym-button-danger.button:focus {
    color: #fff;
    background: #d63638;
    border-color: #d63638;
}

.urlshbym-button-danger.button:focus {
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px #d63638;
}

.urlshbym-button-danger.button:disabled {
    opacity: 0.5;
    color: #d63638;
    background: #fff;
}

/* Form Table Adjustments */
.form-table th {
    width: 200px;
}

.form-table fieldset label {
    display: inline-block;
    margin-bottom: 8px;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .urlshbym-button-group {
        flex-direction: column;
    }
    
    .urlshbym-generate-bulk {
        width: 100%;
    }

    .urlshbym-danger-item {
        flex-direction: column;
        align-items: flex-start;
    }
}