/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

/* Header styles */
header {
    background-color: #2c3e50;
    padding: 1rem;
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-template-areas: 
        "logo title"
        "contact contact";
    grid-template-rows: auto auto;
    gap: 0.375rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    grid-area: logo;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-icon {
    width: 50px;
    height: 50px;
    color: white;
}

.title-container {
    grid-area: title;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

header h1 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.title-container p {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.nav_list {
    width: 100%;
}

.nav_list ul {
    list-style-type: none;
    display: flex;
    gap: 1.5rem;
}

.nav_list a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav_list a:hover {
    color: #3498db;
}

/* Language selector styles */
.language-selector {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.9rem;
}

.language-selector label {
    color: #ecf0f1;
    font-weight: 500;
}

.language-selector select {
    padding: 0.25rem 0.5rem;
    border: 1px solid #34495e;
    border-radius: 4px;
    background-color: #34495e;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
}

.language-selector select:focus {
    outline: none;
    border-color: #3498db;
}

.language-selector select option {
    background-color: #34495e;
    color: white;
}

/* Main content */
main {
    flex: 1;
    padding: 2rem;
    background-color: #f5f7fa;
}

.intro-section {
    text-align: center;
    margin-bottom: 2rem;
}

.intro-section h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.intro-section p {
    max-width: 600px;
    margin: 0 auto;
    color: #7f8c8d;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.currency-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.currency-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.currency-link {
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.flag-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.flag {
    width: 200px;
    height: 100px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.currency-card h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    text-align: center;
}

.currency-card p {
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 0.5rem;
}

.region-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.country-count {
    display: block;
    font-size: 0.9rem;
    color: #95a5a6;
    font-weight: 500;
    text-align: center;
}

/* Cash register specific */
.cash-register {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.register-section {
    margin-bottom: 2rem;
}

.register-section h2 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
    color: #2c3e50;
}

/* Input fields container styling */
.input-fields-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.date-field,
.user-field {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    flex: 1;
}

.date-field label,
.user-field label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.date-input,
.user-input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.date-input:focus,
.user-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.user-input::placeholder {
    color: #95a5a6;
    font-style: italic;
}

.native-language {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 0.5rem;
    text-align: center;
}

.native-language em {
    color: #2c3e50;
    font-weight: 500;
}

.denomination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.denomination {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.denomination-image {
    width: 150px;
    height: 80px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.denomination-input {
    display: flex;
    align-items: center;
    width: 100%;
}

.denomination-input label {
    flex: 1;
    font-weight: 500;
}

.denomination-input input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
}

.total-section {
    background-color: #ecf0f1;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.total-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.total-item {
    display: flex;
    flex-direction: column;
}

.total-item label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.total-item span {
    font-size: 1.2rem;
    font-weight: 700;
}

.grand-total {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.action-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
}

.primary-button {
    background-color: #3498db;
    color: white;
}

.primary-button:hover {
    background-color: #2980b9;
}

.secondary-button {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.secondary-button:hover {
    background-color: #bdc3c7;
}

/* Footer styles */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-ads-space {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 2rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-bottom: 1rem;
}

footer p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

/* Print styles for better PDF output */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        font-family: 'Arial', sans-serif;
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: white;
        margin: 0;
        padding: 0;
    }

    .print-container {
        max-width: 100%;
        margin: 0;
        padding: 20pt;
    }

    .print-header {
        text-align: center;
        margin-bottom: 30pt;
        border-bottom: 2pt solid #2c3e50;
        padding-bottom: 15pt;
    }

    .print-header h1 {
        font-size: 24pt;
        font-weight: bold;
        color: #2c3e50;
        margin: 0 0 10pt 0;
        text-transform: uppercase;
        letter-spacing: 1pt;
        white-space: nowrap;
        overflow: visible;
    }

    .print-date {
        font-size: 14pt;
        color: #666;
        font-style: italic;
        margin: 0;
    }

    .print-info-line {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 10pt 0;
        width: 100%;
        font-size: 14pt;
    }

    .print-name {
        font-size: 14pt;
        color: #333;
        font-weight: normal;
        margin: 0;
    }

    .print-summary {
        background-color: #f8f9fa;
        border: 1pt solid #dee2e6;
        border-radius: 8pt;
        padding: 20pt;
        margin: 20pt 0;
        text-align: center;
    }

    .print-grand-total {
        font-size: 20pt;
        font-weight: bold;
        color: #2c3e50;
        margin-bottom: 15pt;
        padding: 10pt;
        background-color: #e9ecef;
        border-radius: 6pt;
        border: 2pt solid #2c3e50;
    }

    .print-total-item {
        display: inline-block;
        margin: 0 20pt;
        font-size: 14pt;
        font-weight: 600;
        color: #495057;
    }

    .print-details {
        margin-top: 30pt;
    }

    .print-details h2 {
        font-size: 18pt;
        font-weight: bold;
        color: #2c3e50;
        margin-bottom: 15pt;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0.5pt;
    }

    .print-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20pt;
        font-size: 11pt;
    }

    .print-table th {
        background-color: #f8f9fa;
        color: black;
        border: 1pt solid #dee2e6;
        padding: 12pt 8pt;
        text-align: left;
        font-weight: bold;
        font-size: 12pt;
        text-transform: uppercase;
        letter-spacing: 0.5pt;
    }

    .print-table td {
        padding: 10pt 8pt;
        border-bottom: 1pt solid #dee2e6;
        vertical-align: middle;
    }

    .print-table tr:nth-child(even) {
        background-color: #f8f9fa;
    }

    .print-table tr:hover {
        background-color: #e9ecef;
    }

    .category-row td {
        background-color: #6c757d !important;
        color: white !important;
        font-weight: bold;
        font-size: 12pt;
        text-transform: uppercase;
        letter-spacing: 0.5pt;
        padding: 8pt;
        text-align: center;
    }

    .print-table td:first-child {
        font-weight: 600;
        color: #2c3e50;
    }

    .print-table td:last-child {
        font-weight: bold;
        color: #28a745;
        text-align: right;
    }

    .print-table td:nth-child(2) {
        text-align: center;
        font-weight: 600;
        color: #495057;
    }

    .print-footer {
        margin-top: 40pt;
        text-align: center;
        border-top: 1pt solid #dee2e6;
        padding-top: 15pt;
    }

    .print-footer p {
        font-size: 10pt;
        color: #6c757d;
        font-style: italic;
        margin: 0;
    }

    /* Page break controls */
    .print-header {
        page-break-after: avoid;
    }

    .print-summary {
        page-break-inside: avoid;
    }

    .print-table {
        page-break-inside: auto;
    }

    .print-table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    .category-row {
        page-break-after: avoid;
    }

    .print-footer {
        page-break-before: avoid;
    }

    /* Hide elements that shouldn't print */
    .no-print {
        display: none !important;
    }
}

/* Media queries for responsiveness */
/* Header Actions */
.header-actions {
    grid-area: contact;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 0.9rem;
}

.contact-btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.contact-btn i {
    width: 16px;
    height: 16px;
}

/* Contact Page Styles */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
    justify-content: center;
}

.submit-btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.submit-btn i {
    width: 18px;
    height: 18px;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 20px;
    height: 20px;
    color: #3498db;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #7f8c8d;
    margin: 0;
}

.faq-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-item strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.faq-item p {
    color: #7f8c8d;
    margin: 0;
    line-height: 1.5;
}

/* Donation Page Styles */
.donate-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.donate-header {
    text-align: center;
    margin-bottom: 3rem;
}

.donate-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.donate-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.donate-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.donate-message-section {
    display: flex;
    flex-direction: column;
}

.donate-message {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.message-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.donate-content-text {
    line-height: 1.6;
    color: #333;
    padding: 1rem;
}

.donate-content-text p {
    margin-bottom: 1rem;
}

.donate-content-text ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.donate-content-text li {
    margin-bottom: 0.5rem;
}

.donate-form-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.donate-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.donate-form h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.donate-form p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.donation-button-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.donation-button-container form {
    display: flex;
    align-items: center;
    justify-content: center;
}

.donation-button-container input[type="image"] {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 6px;
}

.donation-button-container input[type="image"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.donation-info {
    margin-top: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    width: 20px;
    height: 20px;
    color: #3498db;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.info-item div {
    flex: 1;
}

.info-item strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.info-item p {
    color: #7f8c8d;
    margin: 0;
}

.alternative-support {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.alternative-support h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.support-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.support-item:last-child {
    margin-bottom: 0;
}

.support-item i {
    width: 20px;
    height: 20px;
    color: #27ae60;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.support-item div {
    flex: 1;
}

.support-item strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.support-item p {
    color: #7f8c8d;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    header {
        grid-template-columns: 80px 1fr 80px;
        grid-template-areas: "logo title actions";
    }

    .header-actions {
        grid-area: actions;
        justify-content: center;
    }

    .contact-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .contact-btn span {
        display: none;
    }

    .title-container {
        align-items: center;
    }

    .nav_list ul {
        justify-content: center;
    }

    .denomination-grid {
        grid-template-columns: 1fr;
    }

    .total-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-header h2 {
        font-size: 2rem;
    }

    .donate-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .donate-header h2 {
        font-size: 2rem;
    }
}
