/* ==============================
   Creator Dashboard Styles
   ============================== */
   
   .creator-dashboard {
    padding: 30px 0;
    background-color: #f5f5f5;
    min-height: calc(100vh - 156px); /* Account for header and footer */
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    padding: 0 20px;
}

/* Sidebar Styles */
.dashboard-sidebar {
    width: 230px;
    flex-shrink: 0;
}

.create-work-btn {
    margin-bottom: 20px;
}

.btn-create {
    display: block;
    background-color: #ffa500;
    color: white;
    text-align: center;
    padding: 15px 20px;
    border-radius: 20px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-create:hover {
    background-color: #e69500;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgb(37, 126, 227);
    border-radius: 20px;
    padding: 10px;
}

.nav-item {
    display: block;
    color: white;
    text-align: center;
    padding: 12px 15px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-item:hover {
    background-color: white;
    color: rgb(37, 126, 227);
}

.nav-item.active {
    background-color: white;
    color: rgb(37, 126, 227);
}

/* Main Content Styles */
.dashboard-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-card {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.card-header h2 {
    color: rgb(37, 126, 227);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.more-link {
    color: rgb(37, 126, 227);
    font-size: 0.9rem;
}

.card-content {
    padding: 20px;
}

/* Level Card Styles */
.level-card {
    flex: 2;
}

.level-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.level-badge {
    width: 120px;
    height: 120px;
}

.level-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.level-details {
    flex-grow: 1;
}

.progress-bar {
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin: 10px 0 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: rgb(37, 126, 227);
    border-radius: 5px;
}

.progress-text {
    display: flex;
    justify-content: flex-end;
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
}

.level-tip {
    color: rgb(37, 126, 227);
    font-weight: 500;
    margin-top: 10px;
}

/* Announcement Card Styles */
.announcement-card {
    flex: 1;
}

.empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 150px;
    color: #999;
}

.empty-icon {
    margin-bottom: 15px;
}

.empty-icon img {
    width: 60px;
    height: 60px;
    opacity: 0.5;
}

/* Overview Card Styles */
.overview-card {
    flex: 2;
}

.upgrade-info {
    text-align: center;
    padding: 20px;
}

.upgrade-info h3 {
    color: rgb(37, 126, 227);
    margin-bottom: 10px;
}

/* Ranking Card Styles */
.ranking-card {
    flex: 1;
}

.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ranking-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ranking-item:last-child {
    border-bottom: none;
}

.rank {
    display: inline-block;
    margin-right: 5px;
    font-weight: 600;
}

/* My Comics Card Styles */
.comics-card {
    margin-bottom: 20px;
}

.join-now {
    display: flex;
    gap: 20px;
    align-items: center;
}

.join-icon {
    width: 100px;
    height: 100px;
    background-color: #f0f0f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.join-icon img {
    width: 60px;
    height: 60px;
}

.join-text {
    flex-grow: 1;
}

.join-text h3 {
    color: rgb(37, 126, 227);
    margin-bottom: 15px;
}

.join-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.join-action {
    display: flex;
    align-items: center;
    gap: 10px;
}

.join-action img {
    width: 20px;
    height: 20px;
}

.btn-new-work {
    display: inline-block;
    background: linear-gradient(to right, #ffa500, #ff8c00);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(255, 165, 0, 0.3);
}

.btn-new-work:hover {
    background: linear-gradient(to right, #ff8c00, #ffa500);
    box-shadow: 0 4px 8px rgba(255, 165, 0, 0.4);
    transform: translateY(-2px);
}

/* Creator's Guide Styles */
.guide-card {
    margin-bottom: 20px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.guide-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.guide-image {
    width: 120px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
}

.guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-content {
    flex-grow: 1;
}

.guide-content h3 {
    color: rgb(37, 126, 227);
    font-size: 1rem;
    margin-bottom: 5px;
}

.guide-content p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.btn-guide {
    display: inline-block;
    background-color: rgb(37, 126, 227);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .dashboard-row {
        flex-direction: column;
    }
    
    .level-card, .announcement-card, 
    .overview-card, .ranking-card {
        flex: auto;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
    }
    
    .join-now {
        flex-direction: column;
        text-align: center;
    }
    
    .join-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .level-info {
        flex-direction: column;
        text-align: center;
    }
    
    .guide-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}