body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
}

.page-wrapper {
    padding: 20px;
}

.messages-container {
    max-width: 800px;
    margin: 0 auto 20px;
}

.message {
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

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

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

.message-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.plot-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    text-decoration: none;
}
.plot-page-logo {
    width: 48px;
    height: 48px;
}
.plot-page-site-name {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}
.plot-page-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin: 0 0 30px 0;
}
.plot-page-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.plot-page-image {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #ddd;
    border-radius: 4px;
    max-width: 100%;
    height: auto;
}
.plot-page-info {
    text-align: center;
    margin-top: 24px;
    font-size: 16px;
    color: #555;
}
.plot-page-info p {
    margin: 0;
}
.plot-page-info a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.plot-page-info a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.admin-panel {
    max-width: 600px;
    margin: 32px auto;
    padding: 24px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.admin-panel-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    text-align: center;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 12px;
}

.admin-panel-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.admin-action-button {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background-color: #2563eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.admin-action-button:hover {
    background-color: #1d4ed8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.admin-action-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.admin-action-button[data-action="delete"],
.admin-action-button[data-action="reset"] {
    background-color: #dc2626;
}

.admin-action-button[data-action="delete"]:hover,
.admin-action-button[data-action="reset"]:hover {
    background-color: #b91c1c;
}

/* Mobile-friendly styles */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 12px;
    }

    .plot-page-header {
        margin-bottom: 24px;
    }

    .plot-page-logo {
        width: 36px;
        height: 36px;
    }

    .plot-page-site-name {
        font-size: 18px;
    }

    .plot-page-title {
        font-size: 24px;
        margin: 0 0 20px 0;
    }

    .plot-page-image-container {
        padding: 0 4px;
    }

    .plot-page-image {
        margin: 0 8px;
    }

    .admin-panel {
        margin: 20px auto;
        padding: 16px;
    }

    .admin-panel-title {
        font-size: 18px;
    }

    .admin-panel-buttons {
        grid-template-columns: 1fr;
    }

    .admin-action-button {
        padding: 10px 16px;
        font-size: 13px;
    }
}
