/* Appstore Plugin - Main Stylesheet */

.appstore-embedded-checkout,
.appstore-my-licenses,
.appstore-my-orders {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.appstore-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 40px;
}

.appstore-header {
    text-align: center;
    margin-bottom: 30px;
}

.appstore-header h1 {
    color: #2c3e50;
    font-size: 28px;
    margin: 0 0 10px 0;
}

.appstore-header .subtitle {
    color: #7f8c8d;
    font-size: 16px;
}

.appstore-info-box {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

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

.appstore-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.appstore-form-group input[type="text"],
.appstore-form-group input[type="email"],
.appstore-form-group input[type="date"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.appstore-form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.appstore-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s ease;
}

.appstore-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.appstore-btn-small {
    background: #3498db;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.appstore-btn-small:hover {
    background: #2980b9;
}

.appstore-btn-secondary {
    background: #95a5a6;
    color: white;
}

.appstore-btn-secondary:hover {
    background: #7f8c8d;
}

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

.appstore-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

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

.appstore-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.appstore-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 30px;
}

.appstore-card h2 {
    margin: 0 0 20px 0;
    color: #2c3e50;
}

.appstore-item {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.item-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #95a5a6;
}

/* Page Headers */
.appstore-page-header {
    margin-bottom: 30px;
}

.appstore-page-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

/* Filters */
.appstore-filters {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.appstore-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.appstore-filter-group {
    display: flex;
    flex-direction: column;
}

.appstore-filter-group label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.appstore-filter-group input,
.appstore-filter-group select {
    padding: 10px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
}

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

/* Tables */
.appstore-content-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.appstore-table {
    width: 100%;
    border-collapse: collapse;
}

.appstore-table th,
.appstore-table td {
    padding: 15px 25px;
    text-align: left;
    border-bottom: 1px solid #e1e8ed;
}

.appstore-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.appstore-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    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-empty-state {
    text-align: center;
    padding: 60px 25px;
    color: #7f8c8d;
}

.appstore-muted {
    color: #95a5a6;
    font-size: 14px;
}

/* Pagination */
.appstore-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    gap: 10px;
}

.appstore-page-link,
.appstore-page-current {
    padding: 8px 12px;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    text-decoration: none;
    color: #2c3e50;
    font-size: 14px;
}

.appstore-page-link:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.appstore-page-current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Responsive */
@media (max-width: 768px) {
    .appstore-filter-row {
        grid-template-columns: 1fr;
    }
    
    .appstore-content-grid {
        grid-template-columns: 1fr;
    }
    
    .appstore-table {
        font-size: 12px;
    }
    
    .appstore-table th,
    .appstore-table td {
        padding: 10px 15px;
    }
}


