/* =============================================
   GONIN — style.css
   ============================================= */

/* Base */
body {
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* Scrollbar */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Tab States */
.tab-active  { color: #2563eb; }
.tab-inactive { color: #9ca3af; }

/* Toast */
.toast-hidden  { transform: translateX(100%); opacity: 0; pointer-events: none; }
.toast-visible { transform: translateX(0);    opacity: 1; pointer-events: auto; }

/* Datepicker */
.datepicker { z-index: 9999 !important; font-family: 'Segoe UI', sans-serif; }
.datepicker-cell.selected,
.datepicker-cell.selected:hover { background-color: #2563eb; }
.datepicker-picker {
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border: none;
}

/* Input Focus */
input:focus, select:focus {
    outline: none !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 1px #2563eb !important;
}

/* Profile Image */
.profile-wrapper { position: relative; width: 48px; height: 48px; }
.profile-img-container {
    width: 100%; height: 100%;
    overflow: hidden; border-radius: 50%;
    border: 2px solid white;
    background-color: #bfdbfe;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.profile-img-container img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute; top: 0; left: 0;
    background-color: white;
}

/* Animations */
@keyframes zoomIn  { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes slideUp { from { transform: translateY(100%); }         to { transform: translateY(0); } }
@keyframes spin    { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }

.animate-zoom-in  { animation: zoomIn  0.2s ease-out; }
.animate-slide-up { animation: slideUp 0.3s ease-out; }

/* Spinner */
.spinner {
    display: inline-block;
    width: 1.25rem; height: 1.25rem;
    border: 3px solid transparent;
    border-top-color: #fff; border-bottom-color: #fff;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.6rem;
    vertical-align: middle;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.3));
}

/* ---- Help Center ---- */
.help-container  { padding: 15px 6px; background-color: #f8f9fa; min-height: 100%; }
.help-logo-area  { text-align: center; margin-bottom: 20px; }
.help-chrome-logo-wrapper {
    display: inline-block; padding: 5px;
    border: 1px solid #dadce0; border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(60,64,67,0.1);
}
.help-chrome-logo { width: 50px; height: 50px; display: block; }
.help-h1 {
    font-size: 22px; font-weight: 800; color: #1f2937;
    text-align: center; margin-bottom: 20px; letter-spacing: -0.5px;
}

/* Search Box */
.search-container { position: relative; margin-bottom: 20px; }
.search-box {
    display: flex; align-items: center;
    border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 10px 15px; background-color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.search-box:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.search-icon { width: 18px; height: 18px; fill: #9ca3af; margin-right: 12px; transition: fill 0.3s; }
.search-box:focus-within .search-icon { fill: #3b82f6; }
.search-box input {
    flex-grow: 1;
    border: none !important; outline: none !important; box-shadow: none !important;
    font-size: 15px; color: #374151; background: transparent;
}
.clear-icon { width: 18px; height: 18px; fill: #6b7280; margin-left: 10px; cursor: pointer; display: none; }
.search-box.show-clear .clear-icon { display: block; }

/* Search Results */
.search-results {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
    background-color: #fff;
    border: 1px solid #e5e7eb; border-top: none;
    border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none; max-height: 250px; overflow-y: auto; margin-top: 2px;
}
.search-results.visible { display: block; }
.search-item {
    padding: 10px 15px; cursor: pointer;
    display: flex; align-items: center;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px; color: #374151;
}
.search-item:hover { background-color: #eff6ff; }
.doc-icon-small {
    width: 18px !important; height: 18px !important;
    fill: #2563eb !important; margin-right: 10px; flex-shrink: 0;
}

/* Help Topics */
.help-topics { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.topic-item {
    background-color: #fff;
    border: 1px solid #e5e7eb; border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}
.topic-item.active { border-color: #2563eb; }
.topic-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 15px; cursor: pointer;
}
.topic-title { font-size: 15px; font-weight: 600; color: #374151; line-height: 1.4; }
.topic-item.active .topic-title { color: #2563eb; }
.dropdown-icon {
    width: 22px; height: 22px; background: #f3f4f6; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s; flex-shrink: 0; margin-left: 10px;
}
.dropdown-icon i { font-size: 11px; color: #6b7280; }
.topic-item.active .dropdown-icon { transform: rotate(180deg); background: #eff6ff; }
.topic-item.active .dropdown-icon i { color: #2563eb; }
.topic-content {
    display: none; padding: 0 15px 15px 15px;
    font-size: 14px; color: #4b5563; line-height: 1.6;
}
.topic-item.active .topic-content { display: block; animation: fadeIn 0.3s ease; }

/* Contact Section */
.contact-section {
    text-align: center; margin-top: 30px;
    padding-top: 20px; border-top: 1px dashed #d1d5db; padding-bottom: 80px;
}
.social-links-container { display: flex; justify-content: center; gap: 25px; margin-top: 15px; }
.social-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 50px;
    background: white; border: 1px solid #e5e7eb;
    color: #374151; font-weight: 600; font-size: 13px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    text-decoration: none; transition: all 0.2s;
}
.social-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.social-btn.whatsapp:hover { border-color: #25d366; color: #25d366; background: #f0fdf4; }
.social-btn.gmail:hover    { border-color: #ea4335; color: #ea4335; background: #fef2f2; }

/* =============================================
   DARK MODE
   ============================================= */
html.dark body                        { background-color: #0f172a !important; color: #e2e8f0 !important; }
html.dark .bg-white                   { background-color: #1e293b !important; color: #e2e8f0 !important; }
html.dark .bg-gray-50                 { background-color: #0f172a !important; }
html.dark .bg-gray-100                { background-color: #0f172a !important; }
html.dark .text-gray-800              { color: #f1f5f9 !important; }
html.dark .text-gray-700              { color: #cbd5e1 !important; }
html.dark .text-gray-600              { color: #94a3b8 !important; }
html.dark .text-gray-500              { color: #94a3b8 !important; }
html.dark .text-gray-400              { color: #64748b !important; }
html.dark .border-gray-200,
html.dark .border-gray-300,
html.dark .border-gray-100            { border-color: #334155 !important; }
html.dark input, html.dark select     { background-color: #334155 !important; border-color: #475569 !important; color: #fff !important; }
html.dark .shadow-sm,
html.dark .shadow-md,
html.dark .shadow-xl                  { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.5) !important; }
html.dark .tab-active                 { color: #60a5fa !important; }
html.dark .tab-inactive               { color: #64748b !important; }
html.dark nav                         { background-color: #1e293b !important; border-top-color: #334155 !important; }

/* Help dark */
html.dark .help-container             { background-color: #0f172a !important; }
html.dark .help-chrome-logo-wrapper   { background-color: #1e293b; border-color: #334155; }
html.dark .help-h1                    { color: #f1f5f9; }
html.dark .search-box                 { background-color: #1e293b; border-color: #334155; }
html.dark .search-box input           { color: #f1f5f9; }
html.dark .topic-item                 { background-color: #1e293b; border-color: #334155; }
html.dark .topic-title                { color: #e2e8f0; }
html.dark .topic-content              { color: #cbd5e1; }
html.dark .dropdown-icon              { background-color: #334155; }
html.dark .social-btn                 { background-color: #1e293b; border-color: #334155; color: #e2e8f0; }
