* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #4a6fa5;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.auth-section button {
    background-color: transparent;
    border: 1px solid white;
    color: white;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-section button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

main {
    flex: 1;
    padding: 2rem;
    position: relative;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content h2, .modal-content h3 {
    margin-bottom: 1.5rem;
    color: #4a6fa5;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.form-actions button[type="submit"] {
    background-color: #4a6fa5;
    color: white;
}

.form-actions button[type="button"] {
    background-color: #e0e0e0;
    color: #333;
}

.admin-panel, .seller-panel, .marketplace {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.admin-controls, .filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-controls button {
    background-color: #4a6fa5;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.admin-tab {
    margin-top: 2rem;
}

.admin-tab h3, .seller-products h3, .seller-stats h3 {
    margin-bottom: 1.5rem;
    color: #4a6fa5;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.product-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-filters input, .product-filters select, .filters input, .filters select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.admin-product-card, .product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.admin-product-card:hover, .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.admin-product-card h4, .product-card h3 {
    color: #4a6fa5;
    margin-bottom: 0.5rem;
}

.admin-actions, .product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.admin-actions button, .product-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.admin-actions button:first-child, .product-card button {
    background-color: #4caf50;
    color: white;
}

.admin-actions button:nth-child(2) {
    background-color: #f44336;
    color: white;
}

.admin-actions button:last-child, .product-actions button:first-child {
    background-color: #2196f3;
    color: white;
}

.product-actions button:last-child {
    background-color: #f44336;
    color: white;
}

.sales-summary, .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card, .stat-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.summary-card h4, .stat-card h4 {
    color: #4a6fa5;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.summary-card p, .stat-card p {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.sales-table, .users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.sales-table th, .sales-table td, .users-table th, .users-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.sales-table th, .users-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #4a6fa5;
}

.add-product-btn {
    background-color: #4a6fa5;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.rejection-reason {
    color: #f44336;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.login-notice {
    font-style: italic;
    color: #777;
    margin-top: 0.5rem;
}

footer {
    background-color: #4a6fa5;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

.profile-modal, .content-detail-modal {
    width: 90%;
    max-width: 800px;
}

.profile-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.profile-avatar svg {
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a6fa5;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.profile-description {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4a6fa5;
}

.profile-actions {
    margin-bottom: 2rem;
}

.subscribe-btn {
    background-color: #4a6fa5;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
}

.subscribe-btn.subscribed {
    background-color: #28a745;
}

.profile-content, .content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.content-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: white;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content-preview {
    padding: 1rem;
    cursor: pointer;
    text-align: center;
}

.content-icon {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.content-icon.image {
    background-color: #4caf50;
}

.content-icon.video {
    background-color: #f44336;
}

.content-icon.audio {
    background-color: #2196f3;
}

.content-icon.document {
    background-color: #ff9800;
}

.content-icon svg {
    width: 48px;
    height: 48px;
}

.content-price {
    font-weight: bold;
    color: #4a6fa5;
    text-align: center;
    margin: 0.5rem 0;
}

.content-actions {
    display: flex;
    justify-content: center;
    padding: 1rem;
    gap: 0.5rem;
}

.content-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #4a6fa5;
    color: white;
}

.content-actions button.view-btn {
    background-color: #28a745;
}

.content-preview-large {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.digital-content-placeholder {
    border-radius: 8px;
    overflow: hidden;
}

.content-info {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.content-author, .content-date {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.creator-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s;
}

.creator-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.creator-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.creator-avatar {
    flex-shrink: 0;
}

.creators-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.creators-showcase .creator-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
}

.creators-showcase .creator-avatar {
    margin-bottom: 1rem;
}

.content-type-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: bold;
    color: white;
}

.content-type-badge.image {
    background-color: #4caf50;
}

.content-type-badge.video {
    background-color: #f44336;
}

.content-type-badge.audio {
    background-color: #2196f3;
}

.content-type-badge.document {
    background-color: #ff9800;
}

.content-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.admin-content-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.add-content-btn {
    background-color: #4a6fa5;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 2rem;
}

.content-creator {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .products-grid, .products-list {
        grid-template-columns: 1fr;
    }
    
    .admin-controls, .filters {
        flex-direction: column;
    }
    
    .sales-table, .users-table {
        display: block;
        overflow-x: auto;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .content-grid, .profile-content {
        grid-template-columns: 1fr;
    }
    
    .creators-showcase {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}