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

:root {
    --am-primary: #6366f1;
    --am-primary-hover: #4f46e5;
    --am-bg: #f9fafb;
    --am-card-bg: #ffffff;
    --am-text: #1f2937;
    --am-text-muted: #6b7280;
    --am-text-light: #9ca3af;
    --am-border: #e5e7eb;
    --am-input-bg: #ffffff;
    --am-shadow: 0 2px 5px rgba(0,0,0,0.02);
    --am-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
    --am-link-color: #1a0dab;
    --am-link-hover: #1a0dab;
    --am-dropdown-bg: #ffffff;
    --am-dropdown-hover: #f9fafb;
    --am-kanban-bg: #f8f9fa;
    --am-kanban-empty-bg: #f1f5f9;
    --am-bubble-bg: rgba(255, 255, 255, 0.95);
    --am-bg-gradient: radial-gradient(circle at top, #ffffff 0, #f9fafb 40%, #e5e7eb 100%);
}

:root[data-theme="dark"] {
    --am-primary: #6366f1;
    --am-primary-hover: #818cf8;
    --am-bg: #020617;
    --am-card-bg: #020617;
    --am-text: #e5e7eb;
    --am-text-muted: #94a3b8;
    --am-text-light: #64748b;
    --am-border: #1f2937;
    --am-input-bg: #020617;
    --am-shadow: 0 12px 40px rgba(15,23,42,0.9);
    --am-shadow-hover: 0 18px 60px rgba(15,23,42,1);
    --am-link-color: #93c5fd;
    --am-link-hover: #bfdbfe;
    --am-dropdown-bg: #020617;
    --am-dropdown-hover: #0b1120;
    --am-kanban-bg: #020617;
    --am-kanban-empty-bg: #020617;
    --am-bubble-bg: rgba(15, 23, 42, 0.98);
    --am-bg-gradient: radial-gradient(circle at top, #0f172a 0, #020617 50%, #000000 100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

/* Selection */
::selection {
    background: rgba(99, 102, 241, 0.15);
    color: var(--am-primary);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--am-bg);
    background-image: var(--am-bg-gradient);
    background-attachment: fixed;
    background-size: 260% 260%;
    animation: amBodyGradient 30s ease infinite;
    color: var(--am-text);
    -webkit-font-smoothing: antialiased;
}

@keyframes amBodyGradient {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.text-muted {
    color: var(--am-text-muted) !important;
}

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

.am-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 3rem;
}

.am-main-search {
    justify-content: flex-start;
    padding-top: 2rem;
    align-items: stretch;
}

.am-main-app {
    justify-content: flex-start;
    align-items: stretch;
    padding-top: 1.5rem;
}

.am-logo {
    user-select: none;
    margin-bottom: 2rem;
    text-align: center;
}

.am-logo-small {
    font-size: 1.35rem;
    margin-bottom: 0;
}

.am-logo-main {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--am-text);
}

.am-logo-dot {
    color: #ef4444;
    font-size: 0.75rem;
    margin-left: 2px;
}

.am-logo-sub {
    font-size: 0.82rem;
    color: var(--am-text-muted);
    letter-spacing: 1px;
    margin-top: -5px;
}

@keyframes amLogoShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.am-logo-anim {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0, #0d6efd);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: amLogoShimmer 3s ease infinite;
    display: inline-block;
    padding-bottom: 0.05em;
    text-shadow: 0 5px 15px rgba(13, 110, 253, 0.1);
}

.am-bg-animation {
    position: fixed;
    top: 95%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400vmin;
    height: 400vmin;
    z-index: -1;
    opacity: 0.06;
    pointer-events: none;
}

.am-bg-ayyildiz {
    transform-origin: center;
    transform: rotate(-45deg);
}

.am-bg-ayyildiz path,
.am-bg-ayyildiz polygon {
    fill: url(#amFluidGradient); /* We need to add gradient defs to SVG or use CSS */
    animation: amFluidFill 15s ease infinite;
}

/* Fallback animation for SVG fill since background-clip doesn't work on SVG paths the same way without foreignObject */
@keyframes amFluidFill {
    0% { fill: #ef4444; }
    50% { fill: #ffffff; opacity: 1; } 
    100% { fill: #ef4444; }
}

.am-search-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

/* Base Input Styles */
.am-input, .form-control {
    width: 100%;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
    color: var(--am-text);
    appearance: none;
    height: auto;
}

.am-input:hover, .form-control:hover {
    border-color: #94a3b8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.am-input:focus, .form-control:focus {
    border-color: var(--am-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    outline: none;
    background-color: #ffffff;
    color: var(--am-text);
}

.am-input::placeholder, .form-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.am-input:disabled, .form-control:disabled,
.am-input[readonly], .form-control[readonly] {
    background-color: #f9fafb;
    cursor: not-allowed;
    border-color: #e5e7eb;
    color: #6b7280;
    box-shadow: none;
}

.am-input.am-input-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

textarea.am-input, textarea.form-control {
    min-height: 80px;
    resize: vertical;
    line-height: 1.4;
}

.form-label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.85rem;
    letter-spacing: -0.01em;
}

.am-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234b5563' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px 10px;
    padding-right: 2rem;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
    color: var(--am-text);
    width: 100%;
}

.am-select:hover {
    border-color: #94a3b8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.am-select:focus {
    border-color: var(--am-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    outline: none;
}

.am-select.am-select-sm {
    padding: 0.5rem 2.25rem 0.5rem 0.875rem;
    font-size: 0.875rem;
    border-radius: 8px;
    background-position: right 0.75rem center;
}

/* Search Bar Specific Styles */
.am-search-bar, 
.am-search-header-bar {
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.02);
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    height: 44px; /* Reduced from 56px for minimal look */
    width: 850px;
    max-width: 100%;
}

.am-search-bar:focus-within,
.am-search-header-bar:focus-within {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.02);
    transform: translateY(-1px);
}

/* Reset inner inputs inside search bars */
.am-search-bar .form-control,
.am-search-header-bar .form-control,
.am-search-bar .am-input,
.am-search-header-bar .am-input,
.am-search-bar .input-group-text,
.am-search-header-bar .input-group-text {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.am-search-bar .input-group-text,
.am-search-header-bar .input-group-text {
    padding-left: 1.2rem;
    padding-right: 0.4rem;
    color: var(--am-text-light);
}

.am-search-bar .input-group-text i,
.am-search-header-bar .input-group-text i {
    font-size: 1.1rem;
}

.am-search-bar input,
.am-search-header-bar input {
    padding-left: 0.4rem;
    height: 100%;
    font-size: 1rem;
    background-color: transparent !important;
    color: var(--am-text);
    width: auto !important;
    flex: 1 1 auto !important;
    min-width: 0;
}

.am-search-bar input::placeholder,
.am-search-header-bar input::placeholder {
    font-size: 0.95rem;
    color: var(--am-text-light);
}

.am-voice-search-btn {
    padding-right: 1rem !important;
}

.am-voice-search-btn i {
    font-size: 1.1rem; /* Minimal mic icon */
}

/* Header Bar specifics */


.am-result-card {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: var(--am-card-bg);
    border: 1px solid transparent;
}

.am-result-card:hover {
    background-color: var(--am-card-bg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: var(--am-border);
    transform: translateY(-1px);
}

.am-result-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--am-link-color);
    text-decoration: none;
    display: block;
    margin-bottom: 0.125rem;
}

.am-result-title:hover {
    text-decoration: underline;
    color: var(--am-link-hover);
}

.am-result-url {
    font-size: 0.875rem;
    color: var(--am-text-muted);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.am-result-desc {
    font-size: 0.925rem;
    color: var(--am-text);
    line-height: 1.5;
}

.am-footer {
    padding: 1.5rem;
    font-size: 0.875rem;
    color: var(--am-text-muted);
    background-color: var(--am-card-bg);
    border-top: 1px solid var(--am-border);
}

.am-footer a {
    color: var(--am-text-muted);
    text-decoration: none;
}

.am-footer a:hover {
    color: var(--am-text);
}

.am-tagline {
    font-size: 1rem;
}
.am-tagline-top, .am-tagline-sub {
    display: inline;
}
.am-cta-group .am-btn {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .am-tagline {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0.75rem !important;
    }
    .am-tagline-top, .am-tagline-sub {
        display: block;
    }
    .am-cta-group {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: center;
    }
    .am-cta-group .am-btn {
        width: 100%;
        max-width: 280px;
    }
}
.am-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.am-btn-primary {
    background-color: var(--am-primary);
    border-color: var(--am-primary);
    color: white;
}

.am-btn-primary:hover {
    background-color: var(--am-primary-hover);
    border-color: var(--am-primary-hover);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
}

.am-btn-success {
    background-color: #10b981;
    border-color: #10b981;
    color: white;
}

.am-btn-success:hover {
    background-color: #059669;
    border-color: #059669;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
    transform: translateY(-1px);
}

.am-btn-danger {
    background-color: #ef4444;
    border-color: #ef4444;
    color: white;
}

.am-btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

.am-btn-outline {
    background: transparent;
    border: 1px solid var(--am-border);
    color: var(--am-text-muted);
}

.am-btn-outline:hover {
    background: #fff;
    border-color: var(--am-primary);
    color: var(--am-primary);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.am-btn-outline-primary {
    background: transparent;
    border: 1px solid var(--am-primary);
    color: var(--am-primary);
}

.am-btn-outline-primary:hover {
    background: var(--am-primary);
    color: white;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

.am-btn-outline-danger {
    background: transparent;
    border: 1px solid var(--am-border);
    color: var(--am-text-muted);
}

.am-btn-outline-danger:hover {
    background: #fff;
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.1);
    transform: translateY(-1px);
}

.am-btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

.am-btn-link {
    background: transparent;
    border: none;
    color: var(--am-text-muted);
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.am-btn-link:hover {
    color: var(--am-text);
}

.am-note-btn {
    font-size: 1.25rem;
    color: var(--am-text-muted);
    transition: color 0.2s;
}

.am-note-btn:hover {
    color: var(--am-text);
}

.am-apps-btn {
    font-size: 1.25rem;
    color: var(--am-text-muted);
}

/* User Avatar Styling */
.am-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--am-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: hidden; /* Ensure image fits */
}

.am-user-avatar:hover {
    background-color: var(--am-primary-hover);
    transform: scale(1.05);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.am-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dropdown tweaks */
.am-user-dropdown .dropdown-toggle::after {
    display: none;
}

.offcanvas {
    border-left: none;
    box-shadow: -4px 0 30px rgba(0,0,0,0.08);
    background-color: var(--am-bg); /* Changed to light gray to make cards pop */
    color: var(--am-text);
}

.am-like-btn {
    color: var(--am-text-light);
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.am-like-btn:hover {
    background-color: var(--am-bg);
    color: #ef4444;
}

.am-like-btn-active {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.am-like-btn-active:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.am-result-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background-color: var(--am-bg);
    font-size: 0.75rem;
    color: var(--am-text-light);
}

.am-result-chip i {
    font-size: 0.75rem;
}

.am-result-chip-info {
    color: var(--am-primary);
}

.am-result-chip-info i {
    color: var(--am-primary);
}

.am-images-grid .card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.am-images-grid .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.am-images-layout {
    align-items: flex-start;
}

.am-images-layout .am-images-grid-wrapper {
    border-radius: 16px;
}

.am-images-preview {
    position: sticky;
    top: 96px;
}

.am-images-preview-card {
    border-radius: 16px;
}

.am-images-preview-main {
    border-radius: 12px;
    background-color: #0f172a;
}

.am-images-preview-main img {
    border-radius: 12px;
    object-fit: contain;
    background-color: #0f172a;
}

.am-images-preview-meta {
    font-size: 0.85rem;
}

.am-result-meta {
    font-size: 0.75rem;
}

.am-favicon {
    border-radius: 2px;
    flex-shrink: 0;
    opacity: 0.85;
}

/* Kanban Styles - Enhanced & Minimal v2 */
.am-kanban-column {
    width: 100%;
    margin-bottom: 1rem;
    height: auto;
    display: flex;
    flex-direction: column;
}

.am-kanban-column:last-child {
    margin-bottom: 0;
}

.am-kanban-header {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--am-text-light);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 0.5rem;
}

.am-kanban-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--am-border), transparent);
    opacity: 0.5;
}

.am-kanban-list {
    min-height: 200px;
    background: transparent;
    border-radius: 16px;
    padding: 4px;
    transition: all 0.2s ease;
    flex: 1;
}

/* Empty state styling */
.am-kanban-list:empty {
    background: rgba(0,0,0,0.01);
    border: 2px dashed rgba(0,0,0,0.03);
    position: relative;
}

.am-kanban-list:empty::after {
    content: 'Bu aşamada not yok';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--am-text-light);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.5;
}

.am-kanban-item {
    background: var(--am-card-bg);
    border: none;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    cursor: grab;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-left: 4px solid transparent;
}

.am-kanban-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.am-kanban-item:active {
    cursor: grabbing;
    transform: scale(0.98);
}

/* Status Colors */
.am-kanban-list[data-column="todo"] .am-kanban-item {
    border-left-color: var(--am-text-light);
}

.am-kanban-list[data-column="in_progress"] .am-kanban-item {
    border-left-color: var(--am-primary);
    background: rgba(99, 102, 241, 0.02);
}

.am-kanban-list[data-column="done"] .am-kanban-item {
    border-left-color: #10b981;
    opacity: 0.85;
}

.am-kanban-list[data-column="done"] .am-kanban-item .am-kanban-item-title {
    text-decoration: line-through;
    color: var(--am-text-muted);
}

.am-kanban-item-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--am-text);
    margin-bottom: 0;
    line-height: 1.4;
}

/* Show details again */
.am-kanban-item-body {
    font-size: 0.875rem;
    color: var(--am-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.am-note-date {
    font-size: 0.75rem;
    color: var(--am-text-light);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.am-related-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    background: var(--am-bg);
    color: var(--am-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

/* Actions */
.am-kanban-edit-btn,
.am-delete-note-form {
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.am-delete-note-form {
    right: 3rem;
}

.am-kanban-item:hover .am-kanban-edit-btn,
.am-kanban-item:hover .am-delete-note-form {
    opacity: 1;
}

.am-kanban-edit-btn,
.am-kanban-delete-btn {
    background: var(--am-bg);
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--am-text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.am-kanban-delete-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.am-kanban-edit-btn:hover {
    color: var(--am-primary);
    background: rgba(99, 102, 241, 0.1);
}

.am-note-form-container {
    background: #fff;
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(255,255,255,0.5);
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.am-note-input {
    border: 1px solid transparent;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
    color: var(--am-text);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}

.am-note-input:focus {
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06), 0 0 0 2px rgba(99, 102, 241, 0.5);
    outline: none;
    transform: translateY(-2px);
}

.am-note-input::placeholder {
    color: var(--am-text-light);
}

.am-note-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 14px 14px;
    cursor: pointer;
}

.sortable-ghost {
    opacity: 0.6;
    background: #f9fafb;
    border: 2px dashed var(--am-primary);
    box-shadow: none;
    transform: scale(0.98);
}

.am-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.8);
}

.am-status-dot.todo { background-color: var(--am-text-light); }
.am-status-dot.in-progress { background-color: var(--am-primary); }
.am-status-dot.done { background-color: #10b981; }

/* Modal Styles - Minimal */
.modal-content {
    border-radius: 12px;
    border: 1px solid var(--am-border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.modal-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--am-border);
}

.modal-body {
    padding: 1rem;
}

.modal-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--am-border);
}

.modal-title {
    font-size: 1rem;
    font-weight: 700;
}

/* Table Styles - Minimal */
.table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.75rem !important;
    background-color: var(--am-bg) !important;
    color: var(--am-text-muted);
}

.table td {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.825rem;
    vertical-align: middle;
}

/* Card Styles - Minimal */
.card {
    border-radius: 10px;
    border: 1px solid var(--am-border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.card-header {
    padding: 0.6rem 1rem !important;
    background-color: #fff !important;
    border-bottom: 1px solid var(--am-border) !important;
}

.card-body {
    padding: 1rem !important;
}

/* Search No Results - Minimal */
.am-no-results {
    text-align: center;
    padding: 2rem 1rem;
}

.am-no-results h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

/* Calculator Result Styling (Google Style) */
.am-calc-wrapper {
    background: var(--am-card-bg);
    border: 1px solid var(--am-border) !important;
    transition: all 0.3s ease;
}

.am-calc-display {
    background-color: rgba(0, 0, 0, 0.02);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

[data-theme="dark"] .am-calc-display {
    background-color: rgba(255, 255, 255, 0.05);
}

.am-calc-history {
    color: var(--am-text-muted);
}

.am-calc-main-result {
    color: var(--am-text) !important;
}

.am-calc-grid .btn {
    border-radius: 8px;
    border: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.am-calc-grid .btn-light {
    background-color: #f8f9fa;
    color: #3c4043;
}

.am-calc-grid .btn-secondary {
    background-color: #ebebeb;
    color: #202124;
}

.am-calc-grid .btn-primary {
    background-color: #d2e3fc;
    color: #1967d2;
}

[data-theme="dark"] .am-calc-grid .btn-light {
    background-color: #3c4043;
    color: #e8eaed;
}

[data-theme="dark"] .am-calc-grid .btn-secondary {
    background-color: #5f6368;
    color: #e8eaed;
}

[data-theme="dark"] .am-calc-grid .btn-primary {
    background-color: #8ab4f8;
    color: #202124;
}

.am-calc-grid .btn:hover {
    filter: brightness(0.9);
}

.am-no-results p {
    font-size: 0.875rem;
    color: var(--am-text-muted);
}

/* Animations */
@keyframes am-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.am-blink {
    animation: am-blink 1.5s infinite;
}

@keyframes am-pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

.am-btn-add-blink {
    animation: am-pulse-glow 2s infinite;
}

@keyframes am-fire-glow {
    0%, 100% { 
        background-color: #ff4d4d;
        box-shadow: 0 0 5px #ff4d4d, 0 0 10px #ff4d4d;
    }
    50% { 
        background-color: #ff944d;
        box-shadow: 0 0 10px #ff944d, 0 0 20px #ff944d;
    }
}

.am-btn-fire {
    animation: am-fire-glow 1s infinite;
    border: none !important;
    color: white !important;
}

/* Scaling Fix for 120% Zoom */
@media screen and (max-width: 1400px) {
    .am-nav-actions {
        gap: 0.5rem !important;
    }
    .am-nav-link-icon {
        padding: 0.4rem !important;
    }
}

.am-activity-bubble {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1050;
    background: var(--am-bubble-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--am-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    padding: 10px 20px;
    max-width: 320px;
    font-size: 0.85rem;
    color: var(--am-text);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px); /* Start pushed down */
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.am-activity-bubble.show {
    transform: translateY(0); /* Show */
    opacity: 1;
    pointer-events: auto;
}

/* User Avatar */
.am-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--am-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}
.am-user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(var(--am-primary-rgb), 0.2);
}
.am-user-avatar.no-photo {
    background-color: #e9ecef;
    color: #6c757d;
}
.am-user-avatar.no-photo::before {
    content: "\f007";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Compact Site Card */
.am-site-card-compact {
    padding: 1rem;
    font-size: 0.95rem;
}
.am-site-card-compact .am-result-title {
    font-size: 1.1rem;
}

.am-activity-icon {
    font-size: 1.1rem;
    color: var(--am-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.am-activity-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.am-activity-text {
    font-weight: 500;
    color: var(--am-text);
}

.am-activity-time {
    font-size: 0.75rem;
    color: var(--am-text-muted);
}

/* --- Animation Optimizations (v1.2) --- */

/* Mobile Optimizations */
@media (max-width: 768px) {
    .am-bg-animation {
        display: none; /* Disable heavy background animation on mobile */
    }
    
    .am-activity-bubble {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        transform: translateY(150%);
    }

    .am-activity-bubble.show {
        transform: translateY(0); /* Reset X translation for mobile */
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .am-bg-animation,
    .am-logo-anim {
        animation: none !important;
    }
}

/* Autocomplete Suggestions */
.am-suggestions-box {
    background: var(--am-card-bg);
    border: 1px solid var(--am-border);
    border-radius: 12px; /* Matching modern rounded feel */
    box-shadow: var(--am-shadow-lg);
    margin-top: 8px;
}

.am-suggestion-item {
    transition: background-color 0.1s ease;
    padding: 0.75rem 1rem;
    color: var(--am-text);
}

.am-suggestion-item:hover,
.am-suggestion-item.active {
    background-color: var(--am-bg);
    color: var(--am-text);
}

.am-suggestion-item .am-favicon {
    filter: grayscale(0.2);
    transition: filter 0.2s ease;
}

.am-suggestion-item:hover .am-favicon,
.am-suggestion-item.active .am-favicon {
    filter: grayscale(0);
    opacity: 1 !important;
}

/* Voice Search Pulse Animation */
@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.am-pulse {
    animation: pulse-red 2s infinite;
    border-radius: 50%;
}

/* Ensure voice button doesn't look like text input */
.am-voice-search-btn {
    transition: color 0.2s ease;
}

.am-voice-search-btn:hover {
    color: var(--am-primary) !important;
}

.dropdown-menu {
    background-color: var(--am-dropdown-bg);
    border-color: var(--am-border);
}

.dropdown-item {
    color: var(--am-text);
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--am-dropdown-hover);
    color: var(--am-text);
}

.dropdown-divider {
    border-top-color: var(--am-border);
}

/* Custom Badges */
.am-badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 6px;
    display: inline-block;
}

.am-badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.am-badge-warning {
    background-color: #fef9c3;
    color: #854d0e;
}

.am-badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Additional Utils */
.am-text-success { color: #166534 !important; }
.am-text-danger { color: #ef4444 !important; }

/* Compact Site Card */
.am-site-card-compact {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    gap: 1rem;
    background: var(--am-card-bg);
    border: 1px solid var(--am-border);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.am-site-card-compact:hover {
    border-color: var(--am-primary);
    transform: translateY(-1px);
    box-shadow: var(--am-shadow-sm);
}

.am-site-card-compact .am-favicon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 4px;
}

.am-site-card-compact .site-info {
    flex-grow: 1;
    min-width: 0;
}

.am-site-card-compact .site-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--am-text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.am-site-card-compact .site-url {
    font-size: 0.75rem;
    color: var(--am-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.am-site-card-compact .site-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--am-text-muted);
    flex-shrink: 0;
    align-items: center;
}

.am-site-card-compact .site-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
    align-items: center;
}

/* User Avatar */
.am-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--am-bg);
    border: 1px solid var(--am-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--am-text-muted);
    overflow: hidden;
    transition: all 0.2s;
}

.am-user-avatar:hover {
    border-color: var(--am-primary);
    color: var(--am-primary);
}

.am-calc-container {
    padding: 1rem !important; /* Minimal padding */
    border-radius: 12px !important;
}

.am-calc-container .h2 {
    font-size: 1.5rem !important; /* Smaller result font */
}

.am-no-results-box {
    padding: 1.5rem !important; /* Reduced from 2rem */
    border-radius: 12px !important;
}

.am-no-results-box .display-6 {
    font-size: 2rem !important; /* Smaller icon */
}

.am-no-results-box h4 {
    font-size: 1.1rem !important; /* Smaller title */
}
