:root {
    /* Exact colors from the screenshot */
    --bg-dark: #1F1F35;
    --bg-panel: #2B2C42;
    --bg-search: #3A3B53;
    
    --text-white: #FFFFFF;
    --text-grey: #A3A3B8;
    
    --green-bright: #1DB954;
    --active-highlight: #3A3D5E;
    
    /* Timeline colors */
    --timeline-free: #1DB954;
    --timeline-customer: #9b59b6;
    --timeline-blocker: #e74c3c;
    
    /* Status dots */
    --s-green: #2ecc71;
    --s-red: #e74c3c;
    --s-purple: #9b59b6;
    --s-yellow: #f1c40f;
    --s-grey: #95a5a6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

.app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 30px;
}

/* TOP HEADER */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.header-center {
    flex: 2;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.group-select {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    background-color: var(--surface-color);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    min-width: 150px;
}

#searchInput {
    width: 300px;
    padding: 8px 16px;
}

.top-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.header-center input {
    background-color: var(--bg-search);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    width: 400px;
    color: var(--text-white);
    font-size: 14px;
    outline: none;
}
.header-center input::placeholder {
    color: var(--text-grey);
}

/* RIBBON */
.ribbon-container {
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.users-ribbon {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

/* USER STACK */
.user-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border-radius: 12px;
    min-width: 120px;
    transition: background 0.2s;
    position: relative;
    text-align: center;
}
.user-stack:hover {
    background-color: rgba(255,255,255,0.05);
}

.user-stack.selected {
    background-color: var(--active-highlight);
}

.avatar-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
}

.avatar-wrapper img, .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
}
.dot-green { background-color: var(--s-green); }
.dot-red-minus { background-color: var(--s-red); display: flex; align-items:center; justify-content:center; }
.dot-red-minus::after { content: ''; width: 6px; height: 2px; background: white; }
.dot-purple { background-color: var(--s-purple); }
.dot-red-dot { background-color: var(--s-red); }
.dot-yellow { background-color: var(--s-yellow); }
.dot-grey { background-color: var(--s-grey); }

.user-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
}

.user-status {
    font-size: 12px;
    color: var(--text-grey);
    white-space: nowrap;
}

/* MAIN CONTENT */
.main-content {
    display: flex;
    flex-direction: column;
}
.hidden { display: none !important; }

/* SELECTED USER HEADER */
.selected-user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.selected-user-header h1 {
    font-size: 20px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 12px;
}
.btn {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}
.btn-secondary {
    background-color: #4A4A68;
    color: white;
}
.btn-success {
    background-color: var(--green-bright);
    color: white;
}

/* GRID */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.section-title {
    font-size: 13px;
    color: var(--text-grey);
    margin-bottom: 12px;
}

.meetings-container {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.meeting-card {
    background-color: var(--bg-panel);
    border-radius: 10px;
    padding: 16px;
    width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}

.meeting-card h4 {
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
}

.meeting-card p {
    font-size: 13px;
    color: var(--text-grey);
}

.btn-card-action {
    align-self: flex-end;
    background-color: var(--green-bright);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
}

/* Timeline */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-item {
    background-color: var(--bg-panel);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-left: 4px solid transparent;
}
.timeline-item:hover {
    background-color: rgba(255,255,255,0.05);
}

.timeline-item.t-free { border-left-color: var(--timeline-free); }
.timeline-item.t-customer { border-left-color: var(--timeline-customer); }
.timeline-item.t-internal { border-left-color: var(--timeline-customer); } /* Purple as well in screenshot */
.timeline-item.t-blocker { border-left-color: var(--timeline-blocker); }

.time-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}
.time-desc {
    font-size: 12px;
    color: var(--text-grey);
}
.time-range {
    font-size: 13px;
    font-weight: 500;
}

/* Right Details Panel */
.details-panel {
    background-color: var(--bg-panel);
    border-radius: 12px;
    padding: 40px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.details-placeholder {
    color: #6c6c8e;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.details-content {
    width: 100%;
    align-self: flex-start;
}

.details-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 30px;
}

.details-content h4 {
    font-size: 14px;
    color: var(--text-white);
    margin-bottom: 12px;
}

.participants-list {
    list-style: none;
    margin-bottom: 30px;
}

.participants-list li {
    font-size: 13px;
    color: var(--text-white);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.participants-list li span {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: transparent;
    border: 1px solid var(--text-grey);
    border-radius: 4px;
    text-align: center;
    line-height: 22px;
    color: var(--text-grey);
    font-size: 12px;
}

.detail-text {
    font-size: 13px;
    color: var(--text-white);
    margin-bottom: 30px;
    line-height: 1.5;
}

.detail-text a {
    color: #a29bfe;
    text-decoration: underline;
}

/* LOGIN SCREEN */
.login-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(31, 31, 53, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
}

.login-card {
    background-color: var(--bg-panel);
    padding: 50px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    max-width: 420px;
    border: 1px solid rgba(255,255,255,0.05);
}

.login-card h2 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.login-card p {
    color: var(--text-grey);
    font-size: 14px;
    margin-bottom: 35px;
    line-height: 1.5;
}

.btn-microsoft {
    background-color: #2f2f2f;
    color: white;
    font-size: 15px;
    padding: 12px 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #444;
    transition: all 0.2s;
}

.btn-microsoft:hover {
    background-color: #3b3b3b;
    border-color: #555;
}

.btn-microsoft img {
    height: 18px;
}
