/* Jalpi Premium Design System v2.0 - Forced Update */
:root {
    --primary: #1a73e8;
    --primary-hover: #1557b0;
    --bg: #ffffff;
    --text-main: #202124;
    --text-muted: #5f6368;
    --border: #dfe1e5;
    --radius: 8px;
    --shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none !important;
    color: inherit;
}

img {
    max-width: 100%;
}

/* Header & Nav */
header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 30px;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10;
}

.apps-icon {
    width: 30px;
    height: 30px;
    color: var(--text-muted);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    padding: 3px;
    border-radius: 50%;
    cursor: pointer;
    margin-right: 10px;
    margin-top: 5px;
}

.apps-icon:hover {
    background: #f1f3f4;
}

.apps-icon span {
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
}

.user-avatar {
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-left: 15px;
    cursor: pointer;
}

.sign-in-btn {
    background: var(--primary);
    color: white;
    padding: 9px 23px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.sign-in-btn:hover {
    background: var(--primary-hover);
}

/* Main Search Layout */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 100px;
}

.logo-container {
    margin-bottom: 30px;
}

.logo-jalpi {
    font-size: 90px;
    font-weight: 400;
    letter-spacing: 20px;
    font-family: 'Century Gothic', sans-serif;
}

.logo-j {
    color: #4285F4;
}

.logo-a,
.logo-l,
.logo-p {
    color: #5f6368;
}

.logo-i {
    color: #EA4335;
}

.search-wrapper {
    width: 100%;
    max-width: 584px;
    border: 1px solid var(--border);
    border-radius: 24px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    padding: 0 15px;
    height: 46px;
}

.search-wrapper:hover {
    box-shadow: var(--shadow);
    border-color: transparent;
}

.search-icon {
    color: #9aa0a6;
    margin-right: 12px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
}

.search-tools {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai-mode-pill {
    background: #f1f3f4;
    border-radius: 16px;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Products Grid */
.products-container {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.product-grid-v2 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px;
}

.card-v2 {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f1f3f4;
    padding: 24px;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between;
    min-height: 180px;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.1), 0 2px 6px 2px rgba(60, 64, 67, 0.05);
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
}

.card-v2:hover {
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
    transform: translateY(-2px);
}

.card-v2-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-v2-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-v2-logo {
    height: 32px !important;
    max-width: 100px !important;
    width: auto !important;
    object-fit: contain;
}

.card-v2-body {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.card-v2-footer {
    position: absolute;
    bottom: 0;
    left: 15px;
    width: 80px;
    height: 4px;
}

.footer-blue {
    background-color: #4285F4;
}

.footer-red {
    background-color: #EA4335;
}

/* Authentication Pages Refined */
.auth-body {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

.auth-card {
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 48px 40px 36px;
    width: 100%;
    max-width: 450px;
}

.logo-small {
    font-size: 40px;
    letter-spacing: 15px;
    font-family: 'Century Gothic', sans-serif;
}

.logo-small .logo-j {
    color: #4285F4;
}

.logo-small .logo-a,
.logo-small .logo-l,
.logo-small .logo-p {
    color: #5f6368;
}

.logo-small .logo-i {
    color: #EA4335;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo-text .logo-j {
    color: #4285F4;
}

.logo-text .logo-a {
    color: #EA4335;
}

.logo-text .logo-l {
    color: #FBBC05;
}

.logo-text .logo-p {
    color: #34A853;
}

.logo-text .logo-i {
    color: #4285F4;
}

.auth-title {
    font-size: 24px;
    font-weight: 400;
    margin: 10px 0;
    text-align: center;
}

.auth-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-main);
}

.auth-error {
    background-color: #fce8e6;
    color: #c5221f;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 24px;
}

.form-control {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 16px;
    color: var(--text-main);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    border-width: 2px;
    padding: 12px 14px;
}

.auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.auth-btn {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.auth-btn:hover {
    background: var(--primary-hover);
}

/* Chatbot FAB */
.chatbot-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

@media (max-width: 900px) {
    .product-grid-v2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .product-grid-v2 {
        grid-template-columns: 1fr !important;
    }
}