/* Appstore Plugin Styles */

.appstore-embedded-checkout {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.appstore-container {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.appstore-header h1 {
    color: #333;
    margin-bottom: 10px;
}

.appstore-header .subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

.appstore-info-box {
    background: #f5f5f5;
    border-left: 4px solid #0073aa;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.appstore-form-group {
    margin-bottom: 20px;
}

.appstore-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.appstore-form-group input[type="text"],
.appstore-form-group input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.appstore-form-group input[readonly] {
    background: #f5f5f5;
    cursor: not-allowed;
}

.appstore-btn {
    background: #0073aa;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.appstore-btn:hover {
    background: #005a87;
}

.appstore-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.appstore-loading {
    text-align: center;
    padding: 20px;
}

.appstore-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

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

.appstore-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    border: 1px solid #c3e6cb;
}

.appstore-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    border: 1px solid #f5c6cb;
}

/* My Licenses and My Orders Pages */
.appstore-my-licenses,
.appstore-my-orders {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.appstore-page-header {
    margin-bottom: 30px;
}

.appstore-page-header h1 {
    color: #333;
    margin-bottom: 10px;
}

.appstore-page-header p {
    color: #666;
    font-size: 16px;
}

.appstore-filters {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.appstore-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.appstore-filter-group {
    flex: 1;
    min-width: 200px;
}

.appstore-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.appstore-filter-group input,
.appstore-filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.appstore-filter-actions {
    display: flex;
    gap: 10px;
}

.appstore-btn-secondary {
    background: #666;
    color: #fff;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

.appstore-btn-secondary:hover {
    background: #555;
    color: #fff;
}

.appstore-content-table {
    overflow-x: auto;
    margin-bottom: 30px;
}

.appstore-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.appstore-table thead {
    background: #0073aa;
    color: #fff;
}

.appstore-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.appstore-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.appstore-table tbody tr:hover {
    background: #f5f5f5;
}

.appstore-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.appstore-status-active {
    background: #d4edda;
    color: #155724;
}

.appstore-status-expired {
    background: #f8d7da;
    color: #721c24;
}

.appstore-status-pending {
    background: #fff3cd;
    color: #856404;
}

.appstore-btn-small {
    background: #0073aa;
    color: #fff;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
}

.appstore-btn-small:hover {
    background: #005a87;
    color: #fff;
}

.appstore-muted {
    color: #999;
    font-style: italic;
}

.appstore-empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.appstore-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.appstore-page-link {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.appstore-page-link:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.appstore-page-current {
    padding: 8px 12px;
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .appstore-filter-row {
        flex-direction: column;
    }
    
    .appstore-filter-group {
        width: 100%;
    }
    
    .appstore-table {
        font-size: 14px;
    }
    
    .appstore-table th,
    .appstore-table td {
        padding: 8px;
    }
}

