
:root {
    --primary: rgb(38, 98, 226);
    --bg: rgb(187, 192, 197);
    --text: #1f2a3d;

}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);;
    color: var(--text);
    margin: 0;
    display: flex;;
    flex-direction: column;
    min-height: 100vh;
    
}
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    ;
    padding: 20px;
}

nav {
    background: white;
    padding: 16px 24px;
    border-bottom: 3px solid var(--primary)
    ;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.name .profile{

    width: 60px;
    height: 60px;
    border-radius: 50%;
    
    
}

.macondo-project {
    font-family: cursive;
    font-size: 30px;
    color: rgb(15, 151, 151);
    font-weight: bolder;
}

.logo {
    font-weight: bolder;
    font-size: 18px;
    color: var(--primary);
}

.converter-card {
    background: rgba(248, 246, 246, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 460px;
    transition: transform 0.3s ease
    box-shadows 0.3s;
    backdrop-filter: blur(6px);

    margin: auto;
    margin-top: 100px;
    
}
.converter-card:hover {
    transform: translateY(-6px);;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
}
h2 {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;

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


.grid {
display: grid;
grid-template-columns: 1fr 1fr;;
gap: 20px;
align-items: start ;
}


label{
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: bold;
    color: rgb(89, 103, 122);;
}

select {
    width: 100%;
    ;
    padding: 13px;
    margin-bottom: 20px;
    border: 1px solid rgb(202, 212, 223);
    border-radius: 8px;
    font-size: 16px;
    ;
    box-sizing: border-box;
}

input {
    width: 100%;;
    padding: 12px;
    border: 1px solid rgb(184, 173, 173);
    margin-bottom: 19px;
    font-size: 16px;
    box-sizing: border-box;
}

input, select {
    appearance: none;
   background-color: rgb(229, 229, 241); 
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.text {
    display: flex;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 7px;
}

footer {
    text-align: center;;
    font-size: 15px;
    background: rgb(135, 132, 132);
    border-top: 1px solid #d9e3f0;
    color: #64748b;
    margin-top: auto;
    line-height: 1.5;

}

footer a {
    color: #507213;
    text-decoration: none;
    font-weight: bolder;
    padding: 2px 5px;
    transition: all 0.2s ease;
    display: inline-block;
}

footer p {
    font-size: 18px;
    color: rgb(37, 36, 36);
}

footer a:hover {
    background-color: rgb(228, 231, 236);;
    color: rgb(27, 77, 216);
    text-decoration: underline;
    
}


.history-section {
    margin-top: 24px;
    padding-top: 19px;
    border-top: 1px dashed rgb(213, 218, 225);
}

.history-section h3 {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 16px;
}

#historyList {
    list-style: none;
    max-height: 150px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgb(240, 243, 245);
    border-radius: 8px;
    margin-bottom: 7px;
    font-size: 14px;
    animation: fadeIn 0.3s ease;

}

.result-container {
    position: relative;
    display: flex;
    align-items: center;
}

#copyBtn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: rgb(87, 120, 27);
    transition: transform 0.3s;


}

#copyBtn:hover {
transform: scale(1.2);

}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: bolder;
    cursor: pointer;
    
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center
    ;
    margin-bottom: 16px;
    ;
    margin-top: 1px;
}


.sub-footer {
    background-color: rgb(82, 163, 245);
    padding: 18px 8%;
    text-align: center;
    border-top: 1px solid rgb(225, 230, 237);
}

.sub-footer p {
    max-width: 750px;
    margin: 0 auto;
    font-size: 17px;
    color: rgb(38, 72, 124);
    line-height: 1.5;
}

.sub-footer strong {
    color: #233a27;;
    font-size: 19px;
    font-weight: bolder;;
}