* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #121212;
    color: white;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #333;
}

.logo {
    width: 150px;
    height: 150px;
    background-image: url('../images/logo.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.pdf-logo {
    width: 80px;
    height: 80px;
    background-image: url('data:image/png;base64,');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

h1 {
    margin: 10px 0;
    text-align: center;
    font-size: 28px;
    color: #f5f5f5;
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.main-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.option-btn {
    background-color: #252525;
    color: white;
    border: none;
    padding: 20px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.option-btn:hover {
    background-color: #333;
    transform: translateY(-3px);
}

.emoji {
    font-size: 24px;
}

.back-btn {
    background-color: transparent;
    color: #999;
    border: none;
    padding: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-btn:hover {
    color: white;
}

.form-section {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    margin-top: 30px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 5px;
    color: white;
    font-size: 16px;
}

textarea {
    resize: vertical;
    white-space: pre-wrap;
}

.amount-input {
    position: relative;
}

.amount-input input {
    padding-left: 25px;
}

.amount-input::before {
    content: "$";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
}

.total-section {
    background-color: #252525;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 18px;
    font-weight: bold;
}

.total-amount {
    font-size: 20px;
    font-weight: bold;
    color: #4caf50;
}

.action-btn {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: block;
    margin: 30px auto 0;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background-color: #3e8e41;
}

.hidden {
    display: none;
}

.extras-container {
    margin-top: 20px;
}

.extra-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.extra-item .form-group {
    flex: 1;
    margin-bottom: 0;
}

.extra-controls {
    display: flex;
    gap: 10px;
    margin-top: 26px;
}

.btn-add-extra, .btn-remove-extra {
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    flex-shrink: 0;
}

.btn-add-extra {
    background-color: #4caf50;
    color: white;
}

.btn-remove-extra {
    background-color: #f44336;
    color: white;
}

@media (min-width: 768px) {
    .main-options {
        flex-direction: row;
    }
    
    .option-btn {
        flex: 1;
    }
}

.pdf-content {
    background-color: black;
    color: white;
    padding: 20px;
    display: none;
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #222;
    color: white;
}

.pdf-header-left {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.pdf-header-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdf-logo {
    width: 80px;
    height: 80px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: white;
}

.pdf-company-name {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
}

.pdf-company-subtitle {
    font-size: 16px;
    color: #ccc;
}

.pdf-row {
    display: flex;
    margin-bottom: 10px;
    align-items: baseline;
}

.pdf-row-label {
    flex: 0 0 100px;
    margin-right: 10px;
    text-align: left;
    font-weight: bold;
}

.pdf-row-value {
    flex: 1;
    text-align: left;
    word-break: break-word;
}

.pdf-document-type {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
}

.pdf-row .pdf-document-type + .pdf-row-value {
    margin-left: auto;
}

.pdf-detail {
    margin-bottom: 15px;
    white-space: pre-wrap;
}

.pdf-total {
    text-align: right;
    font-weight: bold;
    margin-top: 20px;
    font-size: 18px;
}

.pdf-extra-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}
