:root {
    --primary: #4CAF50;
    --secondary: #2196F3;
    --warning: #FF9800;
    --danger: #f44336;
    --purple: #9c27b0;
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --text: #333;
    --text-light: #777;
    --border: #eeeeee;
    --shadow: 0 5px 15px rgba(0,0,0,0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    height: 100vh;
}

.hidden { display: none !important; }

#app {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    background: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo i {
    color: var(--primary);
    font-size: 26px;
}

.logo-text {
    font-size: 22px;
    font-weight: 400;
}

.logo-text span {
    font-weight: 700;
    color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid #ddd;
}

/* Main Content */
.app-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px 15px 140px 15px;
}

/* Class List */
.class-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.class-card {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.03);
    cursor: pointer;
}

.class-icon-box {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-right: 15px;
    border: 1px solid #eee;
}

.class-info {
    flex: 1;
}

.class-info h4 {
    font-size: 19px;
    font-weight: 700;
}

.class-info p {
    font-size: 14px;
    color: var(--text-light);
}

.class-card-mic {
    width: 45px;
    height: 45px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
}

.reorder-icon {
    color: #bbb;
    font-size: 18px;
}

/* Detail View Top Buttons */
.detail-top-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.btn-top {
    flex: 1;
    border: none;
    padding: 10px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.btn-top.green { background: #5CB85C; }
.btn-top.orange { background: #F0AD4E; }
.btn-top.purple { background: #9c27b0; }
.btn-top.blue { background: #2196F3; }

/* Student List Item */
.student-card {
    background: white;
    padding: 15px 20px;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.student-name {
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

.student-note-count {
    color: #888;
    font-size: 14px;
    margin-left: 8px;
}

/* Detail Bottom Navigation (Floating) */
.detail-bottom-nav {
    position: fixed;
    bottom: 80px;
    left: 10px;
    right: 10px;
    display: flex;
    padding: 10px;
    gap: 8px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    z-index: 900;
}

.btn-bottom {
    flex: 1;
    border: none;
    padding: 12px;
    border-radius: 20px;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.btn-bottom.orange { background: #f39c12; }
.btn-bottom.purple { background: #8e44ad; }
.btn-bottom.red { background: #e74c3c; }
.btn-bottom.gray { background: #7f8c8d; }

/* Floating Mic FAB */
.voice-fab-area {
    position: fixed;
    bottom: 95px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    z-index: 1000;
}

.voice-tooltip-box {
    background: var(--secondary);
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 11px;
    max-width: 220px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: relative;
}

.fab-mic-main {
    width: 75px;
    height: 75px;
    background: var(--secondary);
    color: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.4);
    cursor: pointer;
}

/* Modals */
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 5px; /* Boxy like Android */
    width: 90%;
    max-width: 400px;
    text-align: left;
}

.modal-content h3 {
    margin-bottom: 25px;
    font-weight: 600;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.icon-choice {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    border: 3px solid transparent;
}

.icon-choice.selected {
    background: var(--primary);
    color: white;
}

/* General Notes */
.general-notes-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.note-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.note-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.note-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Student Detail Footer */
.student-detail-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 15px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}

.footer-row-top, .footer-row-bottom {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-student-action {
    flex: 1;
    border: none;
    padding: 12px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-student-action.purple { background: #8e44ad; }
.btn-student-action.green { background: #5cb85c; }
.btn-student-action.blue { background: #3498db; }
.btn-student-action.red { background: #e74c3c; flex: 0.4; }

.btn-student-action.wide { flex: 1.6; }

/* Bottom Nav Tabs */
.app-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: white;
    padding: 10px;
}

.tab-item {
    flex: 1;
    border: none;
    padding: 15px 5px;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 12px;
}

.tab-blue { background: #3498db; }
.tab-orange { background: #f39c12; }
.tab-purple { background: #8e44ad; }
.menu-list {
    margin-top: 10px;
}

.menu-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    cursor: pointer;
}

.menu-item i {
    width: 20px;
    text-align: center;
    color: #666;
}

.dev-logo {
    margin-right: 10px;
}

.btn-add-header {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--purple);
    cursor: pointer;
    position: absolute;
    right: 0;
}
