/* Admin Styles */
.aap-admin-wrap {
    margin: 20px 20px 20px 0;
    max-width: 1200px;
}

.aap-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    border-bottom: 2px solid #ddd;
}

.aap-tab-button {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    transition: all 0.3s ease;
}

.aap-tab-button:hover {
    color: #0073aa;
    background: #f7f7f7;
}

.aap-tab-button.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.aap-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.aap-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.aap-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.aap-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    color: #23282d;
}

/* Product List */
.aap-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.aap-product-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.aap-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.aap-product-info img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.aap-product-info strong {
    display: block;
    margin-bottom: 5px;
    color: #23282d;
}

.aap-product-info p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

.aap-product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.aap-shortcode-input {
    width: 300px;
    padding: 6px 10px;
    font-family: monospace;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.aap-copy-btn {
    background: #0073aa !important;
    color: #fff !important;
    border-color: #0073aa !important;
    transition: all 0.3s ease;
}

.aap-copy-btn:hover {
    background: #005a87 !important;
    border-color: #005a87 !important;
}

.aap-copy-btn.copied {
    background: #46b450 !important;
    border-color: #46b450 !important;
}

.aap-delete-btn {
    color: #a00 !important;
    border-color: #a00 !important;
}

.aap-delete-btn:hover {
    background: #a00 !important;
    color: #fff !important;
}

/* Logs */
.aap-logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.aap-logs-header h2 {
    margin: 0;
    padding: 0;
    border: none;
}

#logs-container {
    background: #1e1e1e;
    border-radius: 6px;
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.aap-log-entry {
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 4px;
    background: #2a2a2a;
    border-left: 3px solid #666;
}

.aap-log-success {
    border-left-color: #46b450;
}

.aap-log-error {
    border-left-color: #dc3232;
}

.aap-log-info {
    border-left-color: #00a0d2;
}

.aap-log-time {
    color: #888;
    margin-right: 10px;
}

.aap-log-type {
    font-weight: bold;
    margin-right: 10px;
}

.aap-log-success .aap-log-type {
    color: #46b450;
}

.aap-log-error .aap-log-type {
    color: #dc3232;
}

.aap-log-info .aap-log-type {
    color: #00a0d2;
}

.aap-log-message {
    color: #ddd;
}

/* Preview Card */
.aap-preview-card {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
}

.aap-preview-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #23282d;
}

.aap-shortcode-display {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.aap-shortcode-display code {
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 13px;
}

/* Frontend Product Card Styles */
.aap-product-card {
    display: flex;
    gap: 25px;
    padding: 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin: 30px 0;
    transition: all 0.3s ease;
    max-width: 800px;
}

.aap-product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.aap-product-image {
    flex-shrink: 0;
    width: 200px;
}

.aap-product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #eee;
}

.aap-product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.aap-product-title {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
}

.aap-product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.aap-stars {
    display: flex;
    gap: 2px;
}

.aap-star {
    font-size: 18px;
    line-height: 1;
}

.aap-star-full {
    color: #ff9900;
}

.aap-star-half {
    color: #ff9900;
    position: relative;
}

.aap-star-empty {
    color: #ddd;
}

.aap-rating-text {
    font-size: 14px;
    color: #666;
}

.aap-product-price {
    font-size: 28px;
    font-weight: 700;
    color: #b12704;
    margin-bottom: 15px;
}

.aap-product-features {
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.aap-product-features li {
    margin-bottom: 8px;
    color: #444;
    line-height: 1.6;
    font-size: 15px;
}

.aap-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #ff9900 0%, #ff7700 100%);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(255,153,0,0.3);
    align-self: flex-start;
}

.aap-cta-button:hover {
    background: linear-gradient(135deg, #ff7700 0%, #ff5500 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,153,0,0.4);
}

.aap-cta-button svg {
    width: 16px;
    height: 16px;
}

.aap-disclosure {
    margin-top: 15px;
    font-size: 12px;
    color: #888;
    font-style: italic;
}

.aap-preview-features {
    margin: 15px 0;
    padding-left: 20px;
}

.aap-preview-features li {
    margin-bottom: 8px;
    color: #444;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aap-product-card {
        flex-direction: column;
        padding: 20px;
    }
    
    .aap-product-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .aap-product-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .aap-product-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .aap-shortcode-input {
        width: 100%;
    }
    
    .aap-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .aap-tab-button {
        white-space: nowrap;
        padding: 10px 16px;
    }
}

/* Messages */
.notice {
    margin: 15px 0;
    padding: 12px 15px;
    border-left: 4px solid;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.notice-success {
    border-left-color: #46b450;
}

.notice-error {
    border-left-color: #dc3232;
}

/* Scrollbar Styling */
#logs-container::-webkit-scrollbar {
    width: 10px;
}

#logs-container::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 6px;
}

#logs-container::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 6px;
}

#logs-container::-webkit-scrollbar-thumb:hover {
    background: #666;
}