body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    flex-direction: row;
    margin-top: 5vh;
    min-height: 95vh;
}

header {
    width: 100%;
    height: 5vh;
    position: fixed;
    left: 0;
    top: 0;
    background-color: white;
    font-size: 16px;
    z-index: 100; 
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
}

header span {
    font-weight: 800;
    color: #111827;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* Header word styles: specific word treatments */
.make {
    font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
    font-weight: 500; /* fixed invalid weight (was 25) */
    color: #111827;
    margin-left: 6px;
    letter-spacing: -0.01em;
    font-size: 1.20rem;
}

.beautiful {
    font-family: 'Berkshire Swash', cursive; /* fixed invalid font family (was italic) */
    font-size: 1.05rem;
    color: #059669; /* toned purple */ 
    margin: 0 6px;
    line-height: 1;
    margin-left: 4px;
    margin-right: 10px;
}

.card-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: lightblue;
    color: #0f172a;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid #eef2ff;
    box-shadow: 0 4px 10px rgba(2,6,23,0.04);
    margin-left: 2px;
    font-weight: 700;
    font-size: 0.95rem;
}

#left_pane {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background-color: white;
  border-right: 1px solid #e5e7eb;
  height: 95vh;
  overflow-y: auto;
  position: sticky;
  top: 5vh;
}

#preview_area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#edit_area_title {
    height: 5vh;
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 5vh;
    z-index: 10;
}

#edit_area_title p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#center_canvas {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-color: #f9fafb;
}

#my_canvas {
    background: white;
    max-width: 100%;
    height: auto !important;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

#text_area {
  width: 100%;
  height: 120px;
  padding: 12px;
  font-size: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  resize: vertical; 
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  margin-bottom: 12px;
  transition: all 0.2s;
}

#text_area:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#download_btn {
    padding: 12px;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
}

#download_btn:hover {
    background: #059669;
}

#card_content_title {
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

/* Responsiveness */
@media (max-width: 850px) {
    .app-container {
        flex-direction: column;
    }
    
    #left_pane {
        flex: none;
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    #preview_area {
        height: auto;
    }

    #edit_area_title, header {
        position: static;
        height: auto;
        padding: 12px 20px;
    }

    .app-container {
        margin-top: 0;
    }

    #center_canvas {
        padding: 20px;
    }
}


/* Control Sections */
.control_section {
    padding: 24px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.section_subtitle {
    font-size: 12px;
    font-weight: 700;
    color: #374151; 
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

#card_content_title {
    font-size: 12px;
    font-weight: 700;
    color: #374151; 
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.input_group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.input_group label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

/* Form Inputs */
.custom_text_input,
.custom_select,
.custom_number_input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.2s;
}

.custom_text_input:focus,
.custom_select:focus,
.custom_number_input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#text_area {
  width: 100%;
  height: 120px;
  padding: 12px;
  font-size: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  resize: vertical; 
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  margin-bottom: 12px;
  transition: all 0.2s;
}

#text_area:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#download_btn {
    padding: 12px;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#download_btn:hover {
    background: #059669;
}

/* Switches */
.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .2s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #3b82f6;
}

input:checked + .slider:before {
    transform: translateX(16px);
}

.section_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section_header .section_subtitle {
    margin-bottom: 0;
}

/* Profile Section Specifics */
#profile_upload_wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

#upload_button {
    padding: 8px 16px;
    background-color: #f3f4f6;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

#upload_button:hover {
    background-color: #e5e7eb;
}

#upload_profile {
    display: none;
}

#profile_detail {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

/* Responsiveness */
@media (max-width: 850px) {
    .app-container {
        flex-direction: column;
    }
    
    #left_pane {
        flex: none;
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    #preview_area {
        height: auto;
    }

    #edit_area_title p {
        margin: 0;
        font-size: 14px;
        font-weight: 600;
        color: #374151; /* darker gray */
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .app-container {
        margin-top: 0;
    }

    #center_canvas {
        padding: 24px;
    }
}

footer {
    padding: 10px 20px; /* Added more side padding */
    background: white;
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    display: grid;
    /* 3 Columns: 1fr (left), auto (center), 1fr (right) */
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Optional: keeps it from getting too wide on ultrawides */
    margin: 0 auto;
    color: #9ca3af;
    font-size: 16px;
    font-weight: 500;
}

.attribution {
    justify-self: start; /* Pins text to the far left */
}

.kofi-container {
    grid-column: 2; /* Ensures button stays in the middle column */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
}



/* Stack them vertically on tablets/phones */
@media (max-width: 850px) {
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .attribution {
        justify-self: center; /* Center text on mobile */
    }
}
