html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#panel {
    width: 320px;
    height: 240px;
    background-color: #fff;
}

.info-panel {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 12px;
    padding: 12px;
    min-width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 1;
}

.info-panel * {
    pointer-events: none;
}

.panel-content {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: all;
}

.panel-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.panel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 200px;
    margin-right: 4px;
}

.panel-content h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.panel-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.3;
}

.chevron-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    padding: 0;
}

.chevron-icon svg {
    width: 16px;
    height: 16px;
}

.chevron-icon path {
    fill: #000;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    font-family: 'Roboto', sans-serif;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.overlay.active {
    display: flex !important;
    opacity: 1 !important;
}

.popup {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    max-width: 700px;
    width: 100%;
    min-height: 200px;
    max-height: 90vh;
    position: relative;
    font-family: 'Roboto', sans-serif;
    margin: 0 48px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.popup-image {
    width: 100%;
    height: auto;
    max-height: 45vh;
    margin: 0;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    display: none; /* Hidden by default, shown when has image */
}

.popup-image.has-image {
    display: block;
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popup-header {
    padding: 24px 24px 0 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    font-family: 'Roboto', sans-serif;
}

.popup-title {
    color: #000;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.close-button {
    position: absolute;
    top: 16px;
    right: -48px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transform: translateX(-8px);
}

.close-button:hover {
    background: rgba(0, 0, 0, 0.9);
}

.close-button svg {
    width: 24px;
    height: 24px;
    color: white;
}

.popup-content {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
    padding: 0 24px;
    overflow-y: auto;
    flex-grow: 1;
    margin-bottom: 60px; /* Space for fixed button */
}

.popup-content::-webkit-scrollbar {
    width: 8px;
}

.popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.popup-content p {
    margin: 0 0 16px 0;
}

.popup-content p:last-child {
    margin-bottom: 0;
}

/* Login Page Styles */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5ff;
    font-family: 'Roboto', sans-serif;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 40px 20px;
    text-align: center;
}

.logo {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.login-container h1 {
    font-size: 32px;
    margin: 0 0 32px;
    color: #000;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: #0077ff;
}

.input-group .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.error-message {
    color: #ff4444;
    margin-top: 8px;
    display: none;
    font-size: 14px;
}

.login-container button, .donation-button {
    width: 100%;
    padding: 12px;
    background-color: #0077ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

.login-container button:hover, .donation-button:hover {
    background-color: #0066dd;
    color: white;
    text-decoration: none;
}

.donation-button {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 16px;
    background-color: #0077ff;
    color: white;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: block;
    text-align: center;
    box-sizing: border-box;
}