.acf-snapshot-history-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.acf-snapshot-history-wrapper h3 {
    margin-top: 0;
    color: #333;
}

.snapshot-controls {
    margin-bottom: 20px;
}

.snapshot-controls .button {
    margin-right: 10px;
}

.acf-snapshot-list {
    max-height: 400px;
    overflow-y: auto;
}

.acf-snapshot-item {
    background: white;
    border: 1px solid #e5e5e5;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.acf-snapshot-item:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.snapshot-info {
    flex: 1;
}

.snapshot-info strong {
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.snapshot-meta {
    font-size: 12px;
    color: #666;
}

.snapshot-actions {
    margin-left: 20px;
}

.snapshot-actions .button {
    margin-left: 10px;
}

.snapshot-actions .restore-snapshot {
    background-color: #4CAF50;
    color: white;
    border: none;
}

.snapshot-actions .restore-snapshot:hover {
    background-color: #45a049;
}

.snapshot-actions .delete-snapshot {
    background-color: #f44336;
    color: white;
    border: none;
}

.snapshot-actions .delete-snapshot:hover {
    background-color: #da190b;
}

.acf-snapshot-button-wrapper {
    margin: 20px 0;
}

.acf-snapshot-button-wrapper .create-snapshot {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
}

.acf-snapshot-button-wrapper .create-snapshot:hover {
    background-color: #005a87;
}

.snapshot-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    display: inline-block;
}

.snapshot-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.snapshot-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.acf-snapshot-empty {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

body.acf-snapshot-modal-open {
    overflow: hidden;
}

.acf-snapshot-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.acf-snapshot-modal.is-open {
    display: flex;
}

.acf-snapshot-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.acf-snapshot-modal-window {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.acf-snapshot-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 0;
}

.acf-snapshot-modal-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
    color: #333;
}

.acf-snapshot-modal-close {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    width: 28px;
    height: 28px;
    font-size: 22px;
    line-height: 1;
    color: #666;
    cursor: pointer;
}

.acf-snapshot-modal-close:hover {
    color: #111;
}

.acf-snapshot-modal-body {
    padding: 12px 18px 16px;
}

.acf-snapshot-modal-message {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

.acf-snapshot-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 18px 16px;
}

.acf-snapshot-modal-footer .button {
    margin: 0;
}

.acf-snapshot-modal-cancel.is-hidden {
    display: none;
}

.acf-snapshot-modal-ok.is-success {
    background-color: #4CAF50;
    color: #fff;
    border: none;
}

.acf-snapshot-modal-ok.is-success:hover {
    background-color: #45a049;
}

.acf-snapshot-modal-ok.is-danger {
    background-color: #f44336;
    color: #fff;
    border: none;
}

.acf-snapshot-modal-ok.is-danger:hover {
    background-color: #da190b;
}

.acf-snapshot-modal-ok.is-primary {
    background-color: #0073aa;
    color: #fff;
    border: none;
}

.acf-snapshot-modal-ok.is-primary:hover {
    background-color: #005a87;
}