body {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100vw !important;
    position: relative !important;
}

* {
    box-sizing: border-box !important;
}

#root {
    overflow-y: auto !important;
}

/* Mobile-specific fixes */
@media screen and (max-width: 768px) {
    html, body {
        width: 100vw !important;
        position: relative !important;
    }
    
    #root {
        width: 100vw !important;
        max-width: 100vw !important;
    }
    
    /* Fix for gofred-generated content */
    #root > * {
        max-width: 100vw !important;
    }
    
    /* Prevent any large elements from causing zoom */
    div, span, p, h1, h2, h3, h4, h5, h6 {
        max-width: 100% !important;
    }
}

/* Last resort - force 1:1 scale on problematic iOS devices */
@supports (-webkit-touch-callout: none) {
    html {
        -webkit-text-size-adjust: none !important;
    }
}

.gf-button {
    background-color: #225eb8; 
    border: none; 
    border-radius: 4px;
    cursor: pointer;
    padding: 8px;
    margin: 0;
    height: 32px;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gf-button:hover {
    background-color: #2f5598;
}

.gf-button:active {
    background-color: #2f5598;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.gf-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.gf-code-block {
    background: #1F2937;
    color: #F3F4F6;
    border-radius: 8px;
    max-width: 720px;
    width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.gf-code-block-header {
    padding: 6px 6px 0px 0px;
}
  
.gf-code-block-pre {
    margin: 0;
    white-space: pre;
    font-size: 14px;
    line-height: 1.6;
    padding: 0px 16px 16px 16px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}
  
.gf-code-block-copy-button {
    fill: #F3F4F6;
    background: transparent;
    color: #F3F4F6;
    border-radius: 50%;
    padding: 2px !important;
    font-size: 12px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    opacity: 0.25;
    z-index: 10;
}
  
.gf-code-block-copy-button:hover {
    background: #374151 !important;
    opacity: 1;
}

.gf-code-block-copy-button > svg {
    height: 12px;
}

.gf-drawer-barrier {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    background-color: rgba(0, 0, 0, 0.5);
}

.gf-drawer-container {
    position: fixed;
    top: 0;
    left: 0;
}

.gf-drawer-menu {
    height: 100%;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    overflow-x: hidden;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
}

.gf-hidden {
    display: none !important;
}

.gf-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    pointer-events: none;
    display: inherit;
}

.gf-icon-button {
    background-color: transparent; 
    border: none; 
    cursor: pointer;
    border-radius: 50%;
    padding: 8px;
    margin: 0;
}

.gf-icon-button:hover {
    background-color: #F0F0F0;
}

.gf-icon-button:active {
    background-color: #E8E8E8;
}

.gf-link {
    text-decoration: none;
}

.gf-link:hover {
    color: #0000EE;
}