
:root {
    --hsbc-red: #DB0011;
    --hsbc-navy: #1A1F2E;
    --hsbc-white: #FAF9F6;
    --hsbc-gray: #6B7280;
    --success-green: #059669;
    --warning-amber: #D97706;
    --info-blue: #2563EB;
    --light-gray: #F3F4F6;
    --user-message-bg: #e1eaf5;
    --bot-message-bg: var(--light-gray);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--hsbc-white);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#app {
    width: 100%;
    max-width: 375px;
    height: 100vh;
    background-color: var(--hsbc-white);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

.screen {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    animation: fadeIn 0.3s ease-in-out;
    padding: 24px;
    box-sizing: border-box;
    flex-direction: column;
}

.screen.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Login Screen */
#login-screen {
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    text-align: center;
}

.login-logo {
    width: 150px;
    margin-bottom: 16px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--hsbc-navy);
    margin: 0;
}

.subtitle, .tagline {
    font-size: 16px;
    color: var(--hsbc-gray);
    margin-bottom: 32px;
}

.input-group {
    margin-bottom: 16px;
    text-align: left;
}

label {
    display: block;
    font-size: 14px;
    color: var(--hsbc-gray);
    margin-bottom: 8px;
}

input[type="text"],
input[type="password"],
input[type="search"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--hsbc-red);
    color: white;
    width: 100%;
}

.btn-login:hover {
    opacity: 0.9;
}

.login-footer {
    font-size: 14px;
    color: var(--hsbc-gray);
    margin-top: 24px;
}

.login-footer a {
    color: var(--info-blue);
    text-decoration: none;
    margin: 0 8px;
}

/* Dashboard */
#dashboard-screen {
    padding: 0;
    justify-content: flex-start;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: var(--hsbc-white);
    border-bottom: 1px solid var(--light-gray);
    flex-shrink: 0;
}

.dashboard-logo {
    width: 100px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-bar {
    position: relative;
}

.search-bar .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hsbc-gray);
}

.search-bar input {
    padding-left: 36px;
    width: 200px;
    border-radius: 20px;
    background-color: var(--light-gray);
    border: none;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--hsbc-navy);
}

.icon-btn-secondary {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--hsbc-navy);
}

.user-profile {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--hsbc-navy);
    color: var(--hsbc-white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

.dashboard-content {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.welcome-banner {
    background-color: var(--light-gray);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.welcome-banner h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--hsbc-navy);
    margin: 0 0 4px 0;
}

.welcome-banner p {
    font-size: 14px;
    color: var(--hsbc-gray);
    margin: 0;
}

.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.grid-card {
    background-color: var(--hsbc-white);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    padding: 24px;
}

.grid-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--hsbc-navy);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--light-gray);
    color: var(--hsbc-navy);
    font-weight: 600;
    padding: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background-color: #e0e0e0;
}

.action-btn i {
    width: 28px;
    height: 28px;
}

.recent-activity ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-activity li {
    font-size: 14px;
    color: var(--hsbc-gray);
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

.recent-activity li:last-child {
    border-bottom: none;
}

.recent-activity li .time {
    float: right;
    font-size: 12px;
}

.fab {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: var(--hsbc-red);
    color: white;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.fab:hover {
    transform: scale(1.05);
}

.fab i {
    width: 28px;
    height: 28px;
}

/* Chat Screen */
#chat-screen, #upload-screen {
    padding: 0;
    flex-direction: column;
}

.chat-header, .upload-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background-color: var(--hsbc-white);
    border-bottom: 1px solid var(--light-gray);
    flex-shrink: 0;
}

.chat-header h3, .upload-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--hsbc-navy);
    margin: 0;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
    animation: slideUpFadeIn 0.3s ease-out;
    line-height: 1.5;
}

.user-message {
    background-color: var(--user-message-bg);
    color: var(--hsbc-navy);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.bot-message {
    background-color: var(--bot-message-bg);
    color: var(--hsbc-navy);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

@keyframes slideUpFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-footer {
    display: flex;
    padding: 16px 24px;
    background-color: var(--hsbc-white);
    border-top: 1px solid var(--light-gray);
    gap: 16px;
}

#message-input {
    flex-grow: 1;
}

/* Upload Screen */
.upload-content {
    flex-grow: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.upload-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 48px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-zone.dragover {
    border-color: var(--hsbc-red);
    background-color: #fff0f0;
}

.upload-zone .upload-icon {
    width: 48px;
    height: 48px;
    color: var(--hsbc-red);
    margin-bottom: 16px;
}

.upload-zone p {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--hsbc-navy);
}

.upload-zone a {
    color: var(--info-blue);
    text-decoration: none;
    font-weight: 600;
}

#recent-uploads-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
