/* AI Social Post - License Manager Frontend Styles */

/* License Boxes */
.aisp-license-box {
    border-radius: 4px;
    transition: all 0.3s ease;
}

.aisp-license-box:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* License Key Section */
.aisp-license-key-section {
    border-radius: 4px;
}

.aisp-license-key-section code {
    font-family: 'Courier New', Courier, monospace;
    display: block;
    word-break: break-all;
}

/* Copy Button */
.aisp-copy-license {
    transition: all 0.2s ease;
}

.aisp-copy-license:hover {
    transform: scale(1.05);
}

.aisp-copy-license.copied {
    background: #46b450 !important;
    border-color: #46b450 !important;
    color: white !important;
}

/* Deactivate Button */
.aisp-deactivate-site {
    background: #dc3232;
    border-color: #dc3232;
    color: white;
}

.aisp-deactivate-site:hover {
    background: #a82323;
    border-color: #a82323;
    color: white;
}

/* Download Button */
.aisp-download-plugin {
    background: #2271b1;
    border-color: #2271b1;
    color: white;
}

.aisp-download-plugin:hover {
    background: #135e96;
    border-color: #135e96;
    color: white;
}

/* Responsive Tables */
@media screen and (max-width: 768px) {
    .shop_table {
        font-size: 14px;
    }
    
    .shop_table th,
    .shop_table td {
        padding: 8px 4px;
    }
    
    .aisp-license-details {
        grid-template-columns: 1fr !important;
    }
}

/* Loading State */
.aisp-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.aisp-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.aisp-message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    animation: slideDown 0.3s ease-out;
}

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

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Details/Summary Styling */
details {
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}

details summary {
    transition: background 0.2s;
}

details summary:hover {
    background: #f5f5f5;
}

details[open] summary {
    border-bottom: 1px solid #ddd;
}

/* Print Styles */
@media print {
    .aisp-copy-license,
    .aisp-deactivate-site,
    .aisp-download-plugin {
        display: none;
    }
    
    .aisp-license-box {
        page-break-inside: avoid;
    }
}
