* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Header/Navigation */
.header {
    background-color: #1a9b8e;
    padding: 0;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    height: 70px;
}

.logo {
    font-size: 1.3em;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
}

.material-symbols-outlined {
    font-size: 1.8em;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 0.95em;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background-color: #1a9b8e;
    color: white;
    padding: 80px 40px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Special Gothic Expanded One', cursive;
}

.hero p {
    font-size: 1.1em;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 14px 40px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background-color: white;
    color: #1a9b8e;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 40px;
}

.converter-section {
    background-color: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.converter-section h2 {
    color: #1a9b8e;
    margin-bottom: 30px;
    font-size: 2em;
    text-align: center;
    font-family: 'Special Gothic Expanded One', cursive;
}

.converter-section h3 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-family: 'Outfit', sans-serif;
}

.input-section {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 0.95em;
    font-family: 'Outfit', sans-serif;
}

select,
input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
    font-family: 'Outfit', sans-serif;
}

select:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #1a9b8e;
    box-shadow: 0 0 5px rgba(26, 155, 142, 0.3);
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

button {
    border: none;
    border-radius: 5px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    padding: 12px 20px;
    font-family: 'Outfit', sans-serif;
}

#addBtn {
    flex: 1;
    background-color: #1a9b8e;
    color: white;
}

#addBtn:hover {
    background-color: #158078;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 155, 142, 0.4);
}

#getTotalBtn {
    flex: 1;
    background-color: #2ecc71;
    color: white;
}

#getTotalBtn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

#resetBtn {
    flex: 1;
    background-color: #e74c3c;
    color: white;
}

#resetBtn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Display Section */
.display-section {
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background-color: #1a9b8e;
    color: white;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

tbody tr:hover {
    background-color: #f0f0f0;
}

tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Total Section */
.total-section {
    background-color: #f0f8f7;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #1a9b8e;
}

.total-section label {
    margin-bottom: 10px;
    color: #1a9b8e;
    font-weight: 600;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #1a9b8e;
    border-radius: 5px;
    font-size: 1em;
    min-height: 80px;
    font-family: 'Outfit', monospace;
    resize: none;
    background-color: white;
    color: #333;
}

textarea:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(26, 155, 142, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 20px;
    }

    .nav-menu {
        gap: 15px;
        font-size: 0.85em;
    }

    .hero {
        padding: 50px 20px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .main-content {
        padding: 30px 20px;
    }

    .converter-section {
        padding: 20px;
    }

    .button-group {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

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

    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }

    .logo {
        font-size: 1.1em;
        margin-bottom: 15px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        width: 100%;
    }

    .hero h1 {
        font-size: 1.5em;
    }

    .converter-section h2 {
        font-size: 1.5em;
    }

    table {
        font-size: 0.9em;
    }

    th, td {
        padding: 8px 10px;
    }
}
