/*
 Theme Name: CheMentor Fusion Theme
 Theme URI: https://chementor.in/
 Description: Custom child theme of Woostify for CheMentor — optimized for e-learning dashboards, teacher tools, WooCommerce shops, and CheMentor My Account UI.
 Author: CheMentor
 Author URI: https://chementor.in/
 Template: woostify
 Version: 1.0
*/

/* --------------------------------------------------------------
   GLOBAL STYLES
-------------------------------------------------------------- */

/* Improve base font for cleaner reading */
body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-weight: 400;
    background: #f7f8fa;
}

/* --------------------------------------------------------------
   HEADER & NAVBAR
-------------------------------------------------------------- */

.site-header, header {
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
}

.site-header a {
    text-decoration: none;
}

/* --------------------------------------------------------------
   CHEMENTOR SIDEBAR (My Account UI)
-------------------------------------------------------------- */

.cm-left {
    width: 280px;
    float: left;
    background: linear-gradient(145deg, #5d2ee8, #7f45ff);
    padding: 25px 20px;
    border-radius: 12px;
    color: #fff;
    box-sizing: border-box;
}

.cm-left-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.cm-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    display: block;
    margin: 0 auto 10px;
}

.cm-welcome strong {
    display: block;
    font-size: 18px;
    text-align: center;
}

.cm-email {
    font-size: 14px;
    opacity: 0.8;
    text-align: center;
}

.cm-nav {
    margin-top: 25px;
}

.cm-nav-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

.cm-nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.cm-nav-icon {
    margin-right: 10px;
    font-size: 18px;
}

/* Logout item */
.cm-logout {
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------------------
   RIGHT CONTENT PANEL
-------------------------------------------------------------- */

.cm-right {
    margin-left: 320px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    min-height: 500px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.cm-endpoint h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

/* --------------------------------------------------------------
   DASHBOARD GRID
-------------------------------------------------------------- */

.cm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.cm-card {
    padding: 25px;
    border-radius: 12px;
    background: #ffffff;
    display: block;
    text-decoration: none;
    color: #333;
    border: 1px solid #e5e5e5;
    transition: all 0.2s;
}

.cm-card:hover {
    border-color: #7f45ff;
    transform: translateY(-2px);
}

.cm-card-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
    color: #7f45ff;
}

.cm-card-label {
    font-size: 16px;
    font-weight: 600;
}

/* --------------------------------------------------------------
   MOBILE RESPONSIVE
-------------------------------------------------------------- */

@media (max-width: 768px) {
    .cm-left {
        width: 100%;
        margin-bottom: 20px;
        float: none;
    }
    .cm-right {
        margin-left: 0;
        padding: 20px;
    }
    .cm-card {
        padding: 18px;
    }
}
