/* ═══════════════════════════════════════════════════════════════════════════ */
/* GASWORLD CRM TOOL - CORPORATE STYLING */
/* Sleek, professional design matching chat interface */
/* ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8fafc;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* SCROLLBARS */
/* ═══════════════════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* CONTAINER & LAYOUT */
/* ═══════════════════════════════════════════════════════════════════════════ */

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-section {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* TOP BAR - Corporate Header */
/* ═══════════════════════════════════════════════════════════════════════════ */

.top-bar {
    height: 56px;
    background: #0d1526;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
    flex-shrink: 0;
}

.logo-compact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-logo {
    height: 28px;
    width: auto;
}

/* Keep h1 style in case it's used elsewhere */
.logo-compact h1 {
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.5px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* TAB NAVIGATION - Corporate Tabs */
/* ═══════════════════════════════════════════════════════════════════════════ */

.tab-nav {
    display: flex;
    gap: 4px;
    flex: 1;
}

.tab-btn {
    padding: 7px 14px;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tab-btn:hover {
    background: #1e293b;
    color: #f1f5f9;
}

.tab-btn.active {
    background: #1e293b;
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* USER INFO - Top Right */
/* ═══════════════════════════════════════════════════════════════════════════ */

.user-info-compact {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-details-compact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.3;
}

.user-details-compact span:first-child {
    font-size: 12.5px;
    font-weight: 600;
    color: #f1f5f9;
}

.user-email-small {
    font-size: 11px;
    color: #64748b;
}

.btn-logout {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: transparent;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-logout:hover {
    background: #1e293b;
    border-color: #475569;
    color: #f1f5f9;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* TAB CONTENT */
/* ═══════════════════════════════════════════════════════════════════════════ */

.tab-content {
    display: none;
    flex: 1;
    overflow: hidden;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* LOADING ANIMATION */
/* ═══════════════════════════════════════════════════════════════════════════ */

.loading-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94a3b8;
    margin-right: 4px;
    animation: bop 1.3s ease-in-out infinite;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.18s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes bop {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-7px);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* LOGIN SECTION - Corporate Login */
/* ═══════════════════════════════════════════════════════════════════════════ */

.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
    padding: 24px;
}

.login-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.logo-section {
    text-align: center;
    background: #0d1526;
    padding: 40px 48px 36px;
    margin-bottom: 0;
}

.login-logo {
    height: 52px;
    width: auto;
    margin-bottom: 14px;
}

.tagline {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.6;
}

.login-content {
    padding: 40px 48px 48px;
}

.login-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.login-description {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 28px;
    line-height: 1.6;
}

.btn-microsoft {
    width: 100%;
    padding: 14px 20px;
    border-radius: 8px;
    border: none;
    background: #2d2d2d;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.btn-microsoft:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* LIST GENERATOR - Professional Forms */
/* ═══════════════════════════════════════════════════════════════════════════ */

.content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 32px 28px;
    background: #f8fafc;
}

.form-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.form-card h2 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.form-intro {
    margin: 0 0 28px 0;
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.7;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 8px;
}

.hint {
    display: block;
    font-size: 11.5px;
    font-weight: 400;
    color: #94a3b8;
    margin-top: 3px;
}

.form-group textarea,
.form-group input[type="text"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: #0f172a;
    background: #fafafa;
    transition: all 0.15s ease;
}

.form-group textarea:focus,
.form-group input[type="text"]:focus {
    outline: none;
    border-color: #0ea5e9;
    background: white;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
}

/* Radio Buttons - Corporate Style */
.radio-group {
    display: flex;
    gap: 12px;
}

.radio-option {
    flex: 1;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-label {
    display: block;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.15s ease;
}

.radio-option input[type="radio"]:checked + .radio-label {
    border-color: #0ea5e9;
    background: #f0f9ff;
}

.radio-label:hover {
    border-color: #cbd5e1;
}

.radio-label strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
    margin-bottom: 4px;
}

.radio-label small {
    font-size: 11.5px;
    color: #64748b;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* BUTTONS - Corporate Style */
/* ═══════════════════════════════════════════════════════════════════════════ */

.btn-primary,
.btn-success,
.btn-secondary {
    padding: 11px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
}

.btn-primary {
    background: #0ea5e9;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.btn-success {
    background: #22c55e;
    color: white;
    margin-right: 12px;
}

.btn-success:hover:not(:disabled) {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.btn-secondary {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover:not(:disabled) {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* RESULT CARDS - Professional Results */
/* ═══════════════════════════════════════════════════════════════════════════ */

.result-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.result-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-block {
    background: #0d1526;
    color: #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    overflow-x: auto;
    white-space: pre;
    line-height: 1.6;
    border: 1px solid #1e293b;
}

.result-count {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

.result-count strong {
    color: #0f172a;
    font-size: 18px;
    font-weight: 600;
}

.success-card {
    border-left: 4px solid #22c55e;
    background: #f0fdf4;
}

.error-card {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
}

.error-card p {
    color: #dc2626;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* RESPONSIVE DESIGN */
/* ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .top-bar {
        padding: 0 16px;
        gap: 12px;
    }
    
    .logo-compact h1 {
        font-size: 14px;
    }
    
    .tab-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .user-details-compact {
        display: none;
    }
    
    .content-wrapper {
        padding: 20px 16px;
    }
    
    .form-card {
        padding: 24px 20px;
    }
    
    .login-card .login-content {
        padding: 28px 24px 36px;
    }
    .logo-section {
        padding: 32px 24px 28px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* ANIMATIONS */
/* ═══════════════════════════════════════════════════════════════════════════ */

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

.result-card {
    animation: fadeIn 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* UTILITIES */
/* ═══════════════════════════════════════════════════════════════════════════ */

.loading {
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* LIST TYPE AUTO-DETECT BADGE */
/* ═══════════════════════════════════════════════════════════════════════════ */

.list-type-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1.5px solid;
    transition: all 0.2s ease;
}

.list-type-badge .badge-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.list-type-badge strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
    margin-bottom: 2px;
}

.list-type-badge small {
    font-size: 11.5px;
    color: #64748b;
}

.list-type-account {
    background: #f0f9ff;
    border-color: #0ea5e9;
}

.list-type-contact {
    background: #f0fdf4;
    border-color: #22c55e;
}
