body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

#main-container {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    align-items: flex-start;
}

#left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

#app {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

h1 {
    color: #1c1e21;
    margin-bottom: 1.5rem;
    margin: 0;
    color: #664d03;
    font-style: italic;
}

#base-bill-container {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

#base-bill-container label {
    font-weight: bold;
}

#base-bill-container input {
    padding: 10px 12px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    font-size: 1rem;
    width: 120px;
}

#bill-form {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

#bill-form input {
    flex-grow: 1;
    padding: 10px 12px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    font-size: 1rem;
}

#bill-form input[type="number"] {
    flex-grow: 0;
    width: 120px;
}

button {
    background-color: #1877f2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #166fe5;
}

#bill-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

#bill-table th, #bill-table td {
    padding: 12px;
    border-bottom: 1px solid #dddfe2;
    text-align: left;
    vertical-align: middle;
}

#bill-table th {
    background-color: #f5f6f7;
}

#bill-table td:nth-child(2), #bill-table th:nth-child(2) {
    text-align: right;
}

#bill-table td:last-child, #bill-table th:last-child {
    text-align: center;
}

#bill-table tfoot td {
    border-bottom: none;
}

#bill-table tfoot #total-cost {
    text-align: right;
}

tr.cancelled td:not(:last-child) {
    text-decoration: line-through;
    color: #999;
}

#roast-button {
    width: 100%;
    background-color: #e44d26;
    margin-bottom: 0.5rem;
}

#roast-button:hover {
    background-color: #d1411f;
}

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

#caption-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

#generate-image-button {
    width: 100%;
    background-color: #42b72a;
    margin-bottom: 1.5rem;
}

#generate-image-button:hover {
    background-color: #36a420;
}

#base-bill-comparison-container {
    margin-top: 1rem;
    background-color: #e7f3ff;
    border: 1px solid #b3d7ff;
    border-radius: 8px;
    padding: 1rem;
    min-height: 30px;
    text-align: center;
    font-weight: bold;
    color: #0c5460;
}

#roast-container {
    background-color: #fdf2e5;
    border: 1px solid #f9d3a7;
    border-radius: 8px;
    padding: 1rem;
    min-height: 50px;
}

#roast-text {
    margin: 0;
    color: #664d03;
    font-style: italic;
}

#disapproval-text {
    margin: 10px 0 0;
    font-weight: bold;
    color: #8b0000;
    margin-top: 1rem;
    border: 1px solid #dddfe2;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

#image-container img {
    max-width: 100%;
    margin-top: 1rem;
    border: 1px solid #dddfe2;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

#how-it-works {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

#how-it-works h2 {
    text-align: center;
    color: #1c1e21;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

#how-it-works p {
    text-align: left;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

#how-it-works p:last-child {
    margin-bottom: 0;
}

#embarrassment-feed {
    flex: 1;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 450px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

#embarrassment-feed h2 {
    text-align: center;
    color: #1c1e21;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

#feed-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    padding-right: 10px; /* for scrollbar */
    flex-grow: 1;
}

.feed-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.feed-item img {
    width: 100%;
    border-radius: 8px;
}

.caption {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}

/* Custom scrollbar for the feed */
#feed-images::-webkit-scrollbar {
  width: 8px;
}

#feed-images::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

#feed-images::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

#feed-images::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}