/* iMate Shared Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background: #18191d;
    min-height: 100vh;
    color: #fff;
}

.top-bar {
    width: 100vw;
    background: #18191d;
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}
.top-bar .get-credits-btn {
    background: #7ab09c;
    color: #181a20;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 7px 18px;
    margin-right: 18px;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(122,176,156,0.10);
}
.top-bar .get-credits-btn:hover {
    background: #6a9f8c;
}
.credits-dropdown {
    position: relative;
    display: inline-block;
}
.credits-popup {
    position: absolute;
    top: 100%;
    right: 0;
    background: #292a2f;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    padding: 16px;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
    border: 1px solid #333;
}
.credits-dropdown:hover .credits-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.credits-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #333;
}
.credits-option:last-child {
    border-bottom: none;
}
.credits-info {
    flex: 1;
}
.credits-amount {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
}
.credits-price {
    font-size: 0.9rem;
    color: #7ab09c;
    font-weight: 400;
}
.buy-btn {
    background: #7ab09c;
    color: #181a20;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: 16px;
}
.buy-btn:hover {
    background: #6a9f8c;
}
.top-bar .plan {
    background: #2e2f36;
    color: #7ab09c;
    font-size: 0.95rem;
    padding: 4px 14px;
    border-radius: 16px;
    margin-right: 10px;
}
.top-bar .user-info {
    display: flex;
    align-items: center;
    gap: 18px;
}
.top-bar .user-initials {
    background: #343539;
    color: #7ab09c;
    font-weight: bold;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.layout {
    display: flex;
    min-height: 100vh;
    padding-top: 64px;
}
.sidebar {
    width: 300px;
    background: #18191d;
    border-right: 1px solid #23242a;
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 2px 0 12px rgba(0,0,0,0.10);
}
.logo-bar {
    display: flex;
    align-items: center;
    margin-left: 32px;
    margin-bottom: 40px;
}
.logo-bar img {
    height: 90px;
    margin-right: 12px;
}
.logo-bar strong {
    font-size: 1.7rem;
    color: #fff;
}
.sidebar-nav {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
}
.sidebar-nav a {
    font-size: 1.08rem;
    color: #b0b0b0;
    text-decoration: none;
    display: block;
    font-weight: 400;
    transition: color 0.2s, background-color 0.2s;
    padding: 12px 32px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    margin: 0;
}
.sidebar-nav a.active, .sidebar-nav a:hover {
    background: #7ab09c;
    color: #181a20;
    border-radius: 8px;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 0 0 0;
    background: #18191d;
}
.main-content h1 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 40px;
    text-align: center;
    color: #fff;
}
.main-content h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    text-align: left;
    color: #fff;
}
.dashboard-card {
    background: #292a2f;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 40px 48px 32px 48px;
    min-width: 420px;
    max-width: 600px;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.dashboard-card h1 {
    font-size: 2.1rem;
    font-weight: 400;
    margin-bottom: 32px;
    text-align: center;
}
.dashboard-card .start-interview-btn {
    background: #7ab09c;
    color: #181a20;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(122, 176, 156, 0.3);
    margin-bottom: 32px;
}
.dashboard-card .start-interview-btn:hover {
    background: #6a9f8c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 176, 156, 0.4);
}
.analytics-section {
    width: 100%;
    margin-top: 16px;
    background: #23242a;
    border-radius: 12px;
    padding: 24px 20px 16px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.analytics-title, .analytics-label {
    color: #b0b0b0;
}
.analytics-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.analytics-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 10px;
}
.analytics-stat {
    font-size: 1.5rem;
    font-weight: 600;
    color: #7ab09c;
}
.analytics-label {
    font-size: 0.95rem;
}
.analytics-section .get-credits-btn {
    background: #7ab09c;
    color: #181a20;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 400;
    padding: 10px 28px;
    margin: 18px auto 0 auto;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(122,176,156,0.10);
    display: block;
}
.analytics-section .get-credits-btn:hover {
    background: #6a9f8c;
}

.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    background: #18191d;
}

.chat-block {
    border: 1.5px solid #333;
    border-radius: 16px;
    background: #23242a;
    margin: 18px auto 0 auto;
    padding: 16px 0;
    width: 800px;
    max-width: 90vw;
    font-size: 1.1rem;
    text-align: center;
    color: #fff;
}
.chat-block.question {
    background: #181a20;
    border: 1.5px solid #333;
}
.input-block {
    border: 1.5px solid #333;
    border-radius: 16px;
    background: #23242a;
    margin: 24px auto 0 auto;
    padding: 0;
    width: 600px;
    max-width: 90vw;
    display: flex;
    align-items: center;
}
.input-block input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 12px;
    border-radius: 16px 0 0 16px;
    background: transparent;
    color: #fff;
}
.input-block button {
    border: none;
    background: #7ab09c;
    color: #181a20;
    font-size: 1rem;
    padding: 12px 18px;
    border-radius: 0 16px 16px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}
.input-block button:hover {
    background: #6a9f8c;
}
.main-content-cht {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    padding-top: 40px;
    margin-left: 0;
    width: 100vw;
    background: #18191d;
}
.cheatsheet-panel {
    position: relative;
    width: 32px;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(.4,0,.2,1);
    background: #23242a;
    border-left: 2px solid #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 100px;
}
.cheatsheet-panel.open {
    width: 320px;
    overflow: visible;
}
.cheatsheet-handle {
    position: absolute;
    left: 0;
    top: 0;
    height: 64px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #23242a;
    border-radius: 0 8px 8px 0;
    z-index: 2;
    cursor: pointer;
    box-shadow: -2px 0 8px rgba(0,0,0,0.08);
}
.cheatsheet-handle span {
    color: #fff;
    font-size: 1.5rem;
    user-select: none;
}
.cheatsheet-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    gap: 24px;
    display: none;
}
.cheatsheet-panel.open .cheatsheet-section {
    display: flex;
}
.cheatsheet-panel h2 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 24px;
    margin-top: 0;
    color: #fff;
}
.cheatsheet-plus-btn {
    width: 48px;
    height: 48px;
    border: 2px solid #333;
    border-radius: 6px;
    background: #181a20;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cheatsheet-plus-btn:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    background-color: #23242a;
}
.overlay-mode-btn {
    margin-top: 32px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    background: #7ab09c;
    color: #181a20;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.overlay-mode-btn:hover {
    background: #6a9f8c;
}
#chatBlocks {
    max-height: 400px;
    overflow-y: auto;
    width: 100%;
}


.support-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 600px;
    max-width: 90vw;
    margin: 0 auto;
}
.support-form input[type="text"],
.support-form input[type="email"] {
    width: 100%;
    font-size: 1rem;
    padding: 12px 14px;
    border: 1.5px solid #333;
    border-radius: 16px;
    margin-bottom: 24px;
    outline: none;
    background: #23242a;
    color: #fff;
}
.support-form textarea {
    width: 100%;
    min-height: 200px;
    font-size: 1rem;
    padding: 12px 14px;
    border: 1.5px solid #333;
    border-radius: 16px;
    margin-bottom: 32px;
    resize: vertical;
    outline: none;
    background: #23242a;
    color: #fff;
    font-family: inherit;
}
.support-form button {
    width: 140px;
    font-size: 1rem;
    padding: 12px 0;
    background: #7ab09c;
    color: #181a20;
    border: none;
    border-radius: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
}
.support-form button:hover {
    background: #6a9f8c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(122, 176, 156, 0.3);
}
.support-info {
    margin-top: 40px;
    max-width: 480px;
    font-size: 0.95rem;
    color: #b0b0b0;
    text-align: center;
    line-height: 1.6;
}
.support-info strong {
    color: #fff;
    font-weight: 400;
}

.settings-content {
    background: #18191d;
    margin-left: 200px;
    margin-top: 60px;
    max-width: 800px;
}
.settings-content h1 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 40px;
    text-align: center;
    color: #fff;
}
.settings-section {
    margin-bottom: 40px;
}
.settings-section h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #fff;
}
.settings-table {
    width: 100%;
    border-collapse: collapse;
}
.settings-table td {
    padding: 10px 20px 10px 0;
    vertical-align: top;
    font-size: 1.1rem;
}
.settings-table td.label {
    font-weight: 400;
    color: #fff;
}
.settings-table td.value {
    color: #b0b0b0;
}
.settings-table td.action {
    color: #7ab09c;
    font-size: 1rem;
}
.settings-table td.action a {
    color: #7ab09c;
    text-decoration: none;
    font-size: 1rem;
}
.settings-table td.action a:hover {
    text-decoration: underline;
}

.sessions-row {
    display: flex;
    flex-direction: row;
    gap: 60px;
    margin-top: 40px;
}
.plus-btn, .session-card {
    width: 140px;
    height: 140px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #23242a;
    font-size: 3.5rem;
    color: #fff;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.plus-btn:hover, .session-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    background-color: #181a20;
}
.session-card {
    font-size: 1.1rem;
    font-weight: 400;
    cursor: pointer;
}


.cheatsheet-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 900px;
    max-width: 90vw;
    margin: 0 auto;
}
.cheatsheet-form input[type="text"] {
    width: 100%;
    font-size: 1rem;
    padding: 12px 14px;
    border: 1.5px solid #333;
    border-radius: 16px;
    margin-bottom: 32px;
    outline: none;
    background: #23242a;
    color: #fff;
}
.cheatsheet-form textarea {
    width: 100%;
    min-height: 380px;
    font-size: 1rem;
    padding: 12px 14px;
    border: 1.5px solid #333;
    border-radius: 16px;
    margin-bottom: 40px;
    resize: vertical;
    outline: none;
    background: #23242a;
    color: #fff;
}
.cheatsheet-form button {
    width: 140px;
    font-size: 1rem;
    padding: 10px 0;
    background: #7ab09c;
    color: #181a20;
    border: none;
    border-radius: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.cheatsheet-form button:hover {
    background: #6a9f8c;
}



@media (max-width: 900px) {
    .sidebar {
        width: 80px;
        padding-left: 0;
    }
    .sidebar-nav, .logo-bar {
        margin-left: 10px;
    }
    .sidebar-nav a {
        font-size: 0.95rem;
        padding: 6px 8px;
    }
    .logo-bar img {
        height: 60px;
    }
    .logo-bar strong {
        font-size: 1.2rem;
    }
    .support-form {
        width: 95vw;
    }
    .dashboard-card {
        min-width: 90vw;
        padding: 24px 8vw;
    }
    .settings-content {
        margin-left: 0;
        margin-top: 20px;
        padding: 0 10px;
    }
    .sessions-row {
        gap: 20px;
    }
    .plus-btn, .session-card {
        width: 90px;
        height: 90px;
        font-size: 2rem;
    }
    .cheatsheet-form {
        width: 98vw;
    }
    .main-content h1 {
        font-size: 1.5rem;
    }
    .chat-block, .input-block {
        width: 95vw;
        font-size: 1.2rem;
    }
    .cheatsheet-panel.open {
        width: 100vw;
        min-width: 0;
        padding-top: 40px;
    }
}

