/* Common styles for contributor section */

.dashboard-section {
    min-height: 80vh;
    padding: 150px 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-message {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 8px;
    display: none;
}

.form-message.error {
    background-color: rgba(255, 0, 0, 0.1);
    color: #d32f2f;
    display: block;
}

.form-message.success {
    background-color: rgba(22, 223, 158, 0.1);
    color: var(--secondary);
    display: block;
}

/* Loading Screen Styles */
.loading-section {
    min-height: 80vh;
    padding: 150px 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-container {
    text-align: center;
    padding: 40px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.loading-text {
    margin-top: 30px;
    color: var(--text);
    font-weight: 500;
}

.loading-spinner {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    border: 5px solid rgba(107, 70, 255, 0.2);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* CLEAN SLATE: ICON STYLING - REMOVE ALL CIRCLES AND SHOW ICONS */
/* This will override all other icon styles */

/* Reset for dashboard icon container */
.dashboard-card-icon {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 150px !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    background: none !important;
}

/* Reset for dashboard icons themselves */
.dashboard-card-icon i {
    font-size: 120px !important;
    color: #6b46ff !important; /* Hard-coded primary color */
    background: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #6b46ff !important;
    text-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
}

/* Remove any ::before and ::after pseudo-elements */
.dashboard-card-icon i::before,
.dashboard-card-icon i::after {
    background: none !important;
    border-radius: 0 !important;
    display: inline !important;
    position: static !important;
}

/* Dashboard styles */
.dashboard-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-header h2 {
    margin-bottom: 0;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logout-btn, .account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding: 10px 20px;
}

.btn.outline {
    background-color: transparent;
    color: var(--text);
    border: 2px solid var(--gray);
    padding: 8px 18px;
}

.btn.outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(107, 70, 255, 0.05);
}

.dashboard-intro {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    text-align: center;
}

.dashboard-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    background-color: var(--gray);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.4s ease;
    min-height: 250px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.dashboard-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(107, 70, 255, 0.15);
    border-color: var(--primary);
}

.dashboard-card-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    height: 140px; /* Fixed height for consistency */
    align-items: center;
}

/* Dashboard Card Icon - REMOVING CIRCLES */
.dashboard-card-content {
    text-align: center;
}

.dashboard-card-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text);
    font-weight: 600;
}

.dashboard-card-content p {
    color: var(--text-light);
    line-height: 1.6;
}

.dashboard-card::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: rgba(107, 70, 255, 0.1);
    border-radius: 50%;
    bottom: -15px;
    right: -15px;
    transition: all 0.5s ease;
}

.dashboard-card:hover::after {
    transform: scale(10);
    opacity: 0.1;
}

/* User dashboard styles */
.user-panel {
    background-color: var(--gray);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.user-details {
    flex: 1;
    min-width: 250px;
}

.user-details p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.user-details span {
    background-color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
    word-break: break-all;
}

.auth-error {
    text-align: center;
    padding: 30px;
    background-color: var(--gray);
    border-radius: 12px;
}

.auth-error h3 {
    color: #d32f2f;
    margin-bottom: 15px;
}

.auth-error p {
    margin-bottom: 20px;
}

.subjects-container {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .dashboard-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .user-panel {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-details {
        width: 100%;
    }
}

/* Mobile phone specific adjustments */
@media (max-width: 480px) {
    .dashboard-nav {
        grid-template-columns: 1fr; /* Single column for phones */
        gap: 20px; /* Reduce gap for tighter layout */
    }
    
    .dashboard-card {
        min-height: 200px; /* Reduced height for mobile */
        padding: 20px; /* Smaller padding */
    }
    
    .dashboard-card-icon {
        height: 100px; /* Smaller icon container */
        margin-bottom: 15px; /* Reduce bottom margin */
    }
    
    .dashboard-card-icon i {
        font-size: 80px !important; /* Smaller icon */
    }
    
    .dashboard-container {
        padding: 25px 15px; /* Adjust container padding */
    }
    
    .dashboard-intro {
        font-size: 16px; /* Slightly smaller font */
    }
}

/* Username highlight in dashboard - match defaults used elsewhere */
#userGreeting {
    color: var(--primary) !important; /* Purple color to match site theme */
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(107, 70, 255, 0.3);
    position: relative;
}

/* Standard highlight styles as in other files */
.highlight {
     color: var(--primary);
     position: relative;
     display: inline-block;
}
 
.highlight::after {
     content: '';
     position: absolute;
     width: 100%;
     height: 10px;
     background-color: rgba(107, 70, 255, 0.2);
     bottom: 5px;
     left: 0;
     z-index: -1;
     border-radius: 2px;
}