:root {
    --primary-color: #18181B;
    --background-color: #9d9d9d;
    --success-color: #97d866;
    --success-text: #184408;
    --ghost-color: #E85A74;
    --ghost-text: #400318;
    --border-color: #e4e4e7;
    --text-primary: #52525B;
    --text-secondary: #71717A;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    width: 384px;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 24px;
    padding-top: 80px;
    padding-bottom: 80px;
}

.search-container {
    position: relative;
    z-index: 1001;
    display: flex;
    justify-content: center;
    height: 48px;
    width: 100%;
    padding: 0 24px;
}

.search-wrapper {
    position: absolute;
    width: 336px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center top;
    z-index: 1001;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    left: 50%;
    transform: translateX(-50%);
}

/* Desktop zoom only */
@media screen and (min-width: 481px) {
    .search-wrapper.focused {
        transform: translateX(-50%) scale(1.4);
        box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }
}

/* Mobile styles - no zoom */
@media screen and (max-width: 480px) {
    .container {
        width: 100%;
        padding: 80px 16px 80px 16px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .search-container {
        padding: 0;
        width: 100%;
        position: relative;
        left: 0;
        transform: none;
    }

    .search-wrapper {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .search-wrapper.focused {
        transform: translateX(-50%);  /* No scale */
        box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
    }

    /* Prevent iOS zoom on input */
    input[type="text"] {
        font-size: 16px !important;  /* iOS won't zoom if font size is 16px or larger */
    }

    .site-title {
        font-size: 16px;
        padding: 8px 16px;
    }

    .home-header h1 {
        font-size: 32px;
    }

    .home-header p {
        font-size: 16px;
    }

    .content-container {
        padding: 0;
        width: calc(100vw - 32px);
    }

    .stats-card, 
    .form-card {
        width: 100%;
        max-width: calc(100vw - 32px);
    }
}

.search-wrapper.has-suggestions {
    height: auto;
}

.search-input-container {
    position: relative;
    width: 100%;
    background: white;
    z-index: 2;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: opacity 0.2s ease;
    z-index: 10;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon.search {
    opacity: 1;
}

.search-icon.plus {
    opacity: 0;
    pointer-events: none;
}

.search-icon svg {
    display: block;
}

.search-wrapper.focused .search-icon.search {
    opacity: 0;
    pointer-events: none;
}

.search-wrapper.focused .search-icon.plus {
    opacity: 1;
    pointer-events: auto;
}

input[type="text"] {
    width: 100%;
    padding: 12px 40px 12px 16px;
    background: transparent;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    height: 48px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="text"]::placeholder {
    color: var(--text-secondary);
    opacity: 1;
    font-family: 'Inter', sans-serif;
}

input[type="text"]:focus {
    outline: none;
}

.content-container {
    position: relative;
    text-align: left;
    width: 100%;
    padding: 0 24px;
    margin-bottom: 24px;
}

.stats-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 24px;
    margin-bottom: 16px;
    width: 100%;
    min-height: fit-content;
}

.stats-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: fit-content;
}

.stats-info {
    margin-top: auto;
    text-align: left;
}

.company-name {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1;
    color: #18181B;
}

.ghost-count {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    text-align: left;
}

.last-ghost {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: left;
}

.form-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 24px;
}

.ghost-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.response-options {
    display: flex;
    gap: 11px;
    margin-bottom: 12px;
    width: 100%;
}

.response-option {
    flex: 1;
}

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

.response-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    gap: 8px;
    color: var(--text-secondary);
}

.response-label svg {
    stroke: var(--text-secondary);
}

.response-option input[type="radio"]:checked + .response-label.replied {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: var(--success-text);
}

.response-option input[type="radio"]:checked + .response-label.replied svg path {
    stroke: #184408;
}

.response-option input[type="radio"]:checked + .response-label.ghosted {
    background-color: var(--ghost-color);
    border-color: var(--ghost-color);
    color: var(--ghost-text);
}

.response-option input[type="radio"]:checked + .response-label.ghosted svg path {
    stroke: #400318;
}

.select-wrapper {
    position: relative;
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: visible;
    border: 1px solid var(--border-color);
    height: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.select-wrapper:focus-within {
    border: 2px solid var(--primary-color);
    padding: 0;
}

.select-placeholder {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
    font-family: 'Inter', sans-serif;
}

.dropdown-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
    transition: transform 0.3s ease;
}

.select-wrapper.open .dropdown-icon {
    transform: translateY(-50%) rotate(180deg);
}

select {
    width: 100%;
    height: 40px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer;
    z-index: 3;
    font-family: 'Inter', sans-serif;
    border: none;
    background: transparent;
}

select::-ms-expand {
    display: none !important;
}

select:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

/* Custom dropdown */
.select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top center;
    transform: translateY(-8px);
    z-index: 1000;
}

.select-wrapper.open .select-options {
    max-height: 300px;
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.select-option {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    color: var(--text-secondary);
    height: 40px;
    display: flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
}

.select-option:hover {
    background-color: #F4F4F5;
    color: var(--text-primary);
}

.submit-btn {
    width: 100%;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    height: 40px;
    transition: background-color 0.2s ease;
    text-align: center;
}

.submit-btn:hover {
    background-color: #27272A;
}

.suggestions {
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.search-wrapper.has-suggestions .suggestions {
    display: block;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    color: var(--text-secondary);
    height: 42px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background-color: #F4F4F5;
    color: var(--text-primary);
}

.suggestion-item strong {
    color: var(--text-primary);
    font-weight: 800;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

.home-header {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-header h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-align: center;
}

.home-header p {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

/* Add a placeholder text */
.select-placeholder {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
}

/* Skeleton loading animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, 
        #F4F4F5 25%, 
        #E4E4E7 50%, 
        #F4F4F5 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
    user-select: none;
    border-radius: 4px;
}

#companyNameLabel {
    font-family: 'Inter', sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #18181B !important;
    margin-bottom: 4px;
    /* Override input styles */
    padding: 0 !important;
    height: auto !important;
    background: none !important;
    border: none !important;
    line-height: normal !important;
}

#companyNameLabel.skeleton {
    width: 150px;
    height: 24px;
    color: transparent !important;
}

.company-name.skeleton {
    width: 100px;
    height: 48px;
}

.ghost-count.skeleton {
    width: 200px;
    height: 16px;
}

.last-ghost.skeleton {
    width: 180px;
    height: 14px;
    opacity: 0.7;
}

.company-input-container {
    margin-bottom: 16px;
}

.company-name-input {
    width: 100%;
    font-size: 48px;
    font-weight: 600;
    color: var(--text-primary);
    border: none;
    background: transparent;
    padding: 0;
    margin-bottom: 12px;
    line-height: 1.2;
}

.company-name-input:focus {
    outline: none;
}

.company-name-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.company-label {
    font-family: 'Inter', sans-serif;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #18181B !important;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.company-label span,
#companyNameLabel {
    font-family: inherit;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}

.skeleton {
    background: linear-gradient(90deg, 
        #F4F4F5 25%, 
        #E4E4E7 50%, 
        #F4F4F5 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
    user-select: none;
    border-radius: 4px;
    color: transparent !important;
}

/* Remove duplicate styles */
.company-label span,
#companyNameLabel {
    font-family: inherit;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}

#companyNameLabel.skeleton {
    width: 150px;
    height: 24px;
}

.new-company-input {
    width: 100%;
    font-family: 'Inter', sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #18181B !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 32px !important;
    line-height: 1.3 !important;
    resize: none !important;
    display: block !important;
    overflow: hidden !important;
    white-space: pre-wrap !important;
}

.new-company-input:focus {
    outline: none;
}

.new-company-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
    font-size: 24px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
}

.time-range select,
.select-wrapper select {
    width: 100%;
    height: 40px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer;
    z-index: 3;
    font-family: 'Inter', sans-serif;
    border: none !important;
    background: transparent !important;
    color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.time-range select option,
.select-wrapper select option {
    opacity: 0;
    color: transparent;
}

.time-range select::-ms-expand,
.select-wrapper select::-ms-expand {
    display: none !important;
}

.time-range select:focus,
.select-wrapper select:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.coffee-button {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.coffee-button:hover {
    opacity: 1;
}

.coffee-button img {
    height: 32px;
    width: auto;
}

.site-title {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    font-weight: 700;
    padding: 12px 24px;
    white-space: nowrap;
}

.site-title a {
    color: var(--text-primary);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.site-title a:hover {
    opacity: 1;
}

/* Add responsive styles */
@media screen and (max-width: 480px) {
    .container {
        width: 100%;
        padding: 80px 16px 80px 16px;
    }

    .search-container {
        padding: 0;
        width: 100%;
    }

    .search-wrapper {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
    }

    .search-wrapper.focused {
        transform: translateX(-50%);
        box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }

    .site-title {
        font-size: 16px;
        padding: 8px 16px;
    }

    .home-header h1 {
        font-size: 32px;
    }

    .home-header p {
        font-size: 16px;
    }

    .content-container {
        padding: 0;
        width: calc(100vw - 32px);
    }

    .stats-card, 
    .form-card {
        width: 100%;
        max-width: calc(100vw - 32px);
    }
} 

