.pmip-admin-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.pmip-main-settings {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
}

.pmip-side-panel > div {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    margin-bottom: 20px;
}

.pmip-manual-block-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.pmip-manual-block-form input {
    flex: 1;
}

.pmip-manual-sync {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f1;
}

.pmip-manual-sync .description {
    margin-top: 8px;
    font-style: italic;
}

.pmip-log-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.pmip-log-entries {
    max-height: 400px;
    overflow-y: auto;
}

.pmip-log-entries table {
    border-collapse: collapse;
    width: 100%;
}

.pmip-log-entries th,
.pmip-log-entries td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #f0f0f1;
}

.pmip-log-entries tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Dark overlay background */
#pmip-token-instructions {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    display: none;
    overflow-y: auto;
}

/* Centered content box */
#pmip-token-instructions--content {
    max-width: 600px;
    width: 90%;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #444;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: left;
    overflow-y: auto;
    max-height: 80vh;
}

/* Close button */
#pmip-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pmip-close:hover {
    background: #ff3333;
}

/* Freeze scroll when modal is open */
body.pmip-modal-open {
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #pmip-token-instructions--content {
        width: 95%;
        padding: 15px;
        max-height: 85vh;
    }
    #pmip-close {
        top: 5px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 16px;
        padding: 5px;
    }
}

@media (max-width: 480px) {
    #pmip-token-instructions--content {
        width: 98%;
        max-height: 90vh;
        padding: 15px;
    }
    #pmip-close {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

.notice {
    margin: 20px 0;
}

/* Support and Contact Styles */
.pmip-support-section {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.pmip-support-section h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
}

.pmip-buymeacoffee {
    margin: 20px 0;
}

.pmip-contact-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pmip-contact-info h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 15px;
}

.pmip-contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pmip-contact-method {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.pmip-contact-method:hover {
    transform: translateY(-3px);
}

.pmip-contact-method i {
    font-size: 24px;
    color: #0073aa;
    margin-bottom: 10px;
}

.pmip-contact-method h4 {
    color: #2c3e50;
    margin: 10px 0;
}

.pmip-contact-method p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.pmip-contact-method a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.pmip-contact-method a:hover {
    text-decoration: underline;
}

/* Newsletter Styles */
.pmip-newsletter {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
    color: #fff;
    text-align: center;
    transition: all 0.3s ease;
}

.pmip-newsletter h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.pmip-newsletter p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.pmip-newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    transition: opacity 0.3s ease;
}

.pmip-newsletter-form input[type='email'] {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
}

.pmip-newsletter-form button {
    background: #fff;
    color: #0073aa;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pmip-newsletter-form button:hover {
    background: #f0f0f0;
}

.pmip-newsletter-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
    transition: all 0.3s ease;
}

.pmip-newsletter-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pmip-newsletter-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pmip-newsletter-success {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.pmip-newsletter-success p {
    margin: 10px 0;
    font-size: 16px;
}

@media (max-width: 768px) {
    .pmip-newsletter-form {
        flex-direction: column;
    }

    .pmip-newsletter-form button {
        width: 100%;
    }

    .pmip-contact-methods {
        grid-template-columns: 1fr;
    }
}
/* Adjust grid layout for small screens */
@media (max-width: 768px) {
    .pmip-admin-grid {
        display: block; /* Stack instead of side-by-side */
    }

    .pmip-main-settings, 
    .pmip-side-panel > div {
        margin-bottom: 15px;
    }

    .pmip-log-filters,
    .pmip-manual-block-form {
        flex-direction: column;
    }

    .pmip-manual-block-form input {
        width: 100%;
    }
}

/* Improve modal on small screens */
@media (max-width: 600px) {
    #pmip-token-instructions--content {
        width: 95%;
        max-height: 90vh;
        padding: 15px;
    }

    #pmip-close {
        top: 8px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* Fix button and form responsiveness */
@media (max-width: 480px) {
    .pmip-newsletter-form {
        flex-direction: column;
    }

    .pmip-newsletter-form input,
    .pmip-newsletter-form button {
        width: 100%;
    }

    .pmip-contact-methods {
        grid-template-columns: 1fr;
    }

    .pmip-contact-method {
        padding: 15px;
    }

    .pmip-buymeacoffee img {
        width: 100%;
        height: auto;
    }
}

/* Improve log entries display on mobile */
@media (max-width: 768px) {
    .pmip-log-entries table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    .pmip-log-entries th,
    .pmip-log-entries td {
        white-space: nowrap;
    }
}