* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-decoration: none;
}

body {
    background: #1E1E1E;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem;
    transition: background-color 0.3s ease;
    width: 100%;
    overflow-x: hidden;
}

body.grade-body-bg { 
    background-color: #00C853 !important; 
    background-image: url('https://easygradecalc.io/img/A+.svg') !important; 
    background-size: cover !important; 
    background-position: center !important; 
    background-repeat: no-repeat !important; 
    background-attachment: fixed !important;
}

body.tip-body-bg { 
    background-color: #8ddcff !important; 
    background-image: url('https://easygradecalc.io/img/Notes.svg') !important; 
    background-size: cover !important; 
    background-position: center !important; 
    background-repeat: no-repeat !important; 
    background-attachment: fixed !important;
}

body.percentage-body-bg { 
    background-color: #6200ea !important; 
    background-image: url('https://easygradecalc.io/img/Percentage.svg') !important; 
    background-size: cover !important; 
    background-position: center !important; 
    background-repeat: no-repeat !important; 
    background-attachment: fixed !important;
}

body.loan-body-bg { 
    background-color: #ffd600 !important; 
    background-image: url('https://easygradecalc.io/img/Dollar.svg') !important; 
    background-size: cover !important; 
    background-position: center !important; 
    background-repeat: no-repeat !important; 
    background-attachment: fixed !important;
}

body.password-body-bg { 
    background-color: #fb8c00 !important; 
    background-image: url('https://easygradecalc.io/img/Lock.svg') !important; 
    background-size: cover !important; 
    background-position: center !important; 
    background-repeat: no-repeat !important; 
    background-attachment: fixed !important;
}

body.currency-body-bg { 
    background-color: #1a237e !important; 
    background-image: url('https://easygradecalc.io/img/CE.svg') !important; 
    background-size: cover !important; 
    background-position: center !important; 
    background-repeat: no-repeat !important; 
    background-attachment: fixed !important;
}

.site-header {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 3rem;
    margin-bottom: 2rem;
    border: 1px solid #444;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    z-index: 100;
}

.logo { display: flex; align-items: center; gap: 1rem; }
.logo img { width: 70px; height: auto; filter: drop-shadow(0 0 5px #00C853); }
.logo span { font-size: 1.8rem; font-weight: 700; color: white; text-shadow: 0 2px 10px rgba(0,200,83,0.3); }

.nav-menu { display: flex; gap: 2rem; }
.nav-menu a { color: #ffffff; text-decoration: none; font-size: 1.2rem; font-weight: bold; padding: 0.5rem 1rem; border-radius: 2rem; transition: all 0.3s ease; cursor: pointer; }
.nav-menu a:hover { color: white; background: #00C853; transform: translateY(-2px); }

.menu-toggle { display: none; flex-direction: column; cursor: pointer; padding: 10px; z-index: 1000; }
.menu-toggle span { width: 30px; height: 3px; background: white; margin: 3px 0; transition: 0.3s; border-radius: 3px; }
.mobile-nav { display: none; position: absolute; top: 100%; right: 0; background: rgba(30, 30, 30, 0.98); backdrop-filter: blur(10px); border-radius: 2rem; padding: 1.5rem; margin-top: 1rem; border: 1px solid #444; box-shadow: 0 20px 30px rgba(0,0,0,0.5); z-index: 99; min-width: 200px; }
.mobile-nav a { display: block; color: #ccc; text-decoration: none; font-size: 1.2rem; padding: 1rem 1.5rem; border-radius: 2rem; transition: all 0.3s ease; text-align: center; cursor: pointer; }
.mobile-nav a:hover { color: white; background: #00C853; }
.mobile-nav.hidden { display: none; }

.toolbox-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    align-items: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 2rem auto;
    width: 100%;
    padding: 0 1rem;
}

.tool-box, .tool-box2, .tool-box3, .tool-box4, .tool-box5, .tool-box6 {
    width: 100%;
    max-width: 400px;
    height: 300px;
    background: #2A2A2A;
    border-radius: 2rem;
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    border: 4px solid #444;
    padding: 1.5rem;
    background-size: cover;
    background-position: center;
}

.tool-box:hover, .tool-box2:hover, .tool-box3:hover, .tool-box4:hover, .tool-box5:hover, .tool-box6:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 40px -12px #000;
}

.box-1:hover { border-color: #00C853; }
.box-2:hover { border-color: #8ddcff; }
.box-3:hover { border-color: #6200ea; }
.box-4:hover { border-color: #ffd600; }
.box-5:hover { border-color: #fb8c00; }
.box-6:hover { border-color: #1a237e; }

.tool-btn1, .tool-btn2, .tool-btn3, .tool-btn4, .tool-btn5, .tool-btn6 {
    padding: 1rem 2.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    color: white;
    background: #2C3E50;
    border: none;
    border-radius: 4rem;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    transition: 0.15s;
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-width: 180px;
    text-transform: uppercase;
}
.tool-btn1 { margin-top: 40px; }
.tool-btn2, .tool-btn5, .tool-btn6 { margin-top: 20px; }
.tool-btn3 { margin-top: 42px; }
.tool-btn4 { margin-top: 35px; }

.tool-btn1:hover, .tool-btn2:hover, .tool-btn3:hover, .tool-btn4:hover, .tool-btn5:hover, .tool-btn6:hover {
    background: #1A2632;
    transform: scale(1.05);
    box-shadow: 0 12px 24px black;
}

.tool-box{ background-image: url('https://easygradecalc.io/img/A+.svg') !important; background-size: cover !important; }
.tool-box2{background-image: url('https://easygradecalc.io/img/Notes.svg') !important; background-size: cover !important; }    
.tool-box3{background-image: url('https://easygradecalc.io/img/Percentage.svg') !important; background-size: cover !important;}    
.tool-box4{background-image: url('https://easygradecalc.io/img/Dollar.svg') !important; background-size: cover !important;}
.tool-box5{background-image: url('https://easygradecalc.io/img/Lock.svg') !important; background-size: cover !important;}
.tool-box6{background-image: url('https://easygradecalc.io/img/CE.svg') !important; background-size: cover !important;}

.box-1 .tool-btn1 { background: #00C853; color: #111; }
.box-2 .tool-btn2 { background: #80D8FF; color: #111; }
.box-3 .tool-btn3 { background: #6200EA; }
.box-4 .tool-btn4 { background: #FFD600; color: #111; }
.box-5 .tool-btn5 { background: #FB8C00; }
.box-6 .tool-btn6 { background: #1a237e; color: white; }

.tool-description {
    text-align: center;
    color: white;
    font-size: 12px;
    line-height: 1.5;
    padding: 0 1rem 1rem;
    margin-top: 50px;
    font-weight: bold;
    width: 100%;
}
.tool-description p { margin: 0.3rem 0; }

.tool-page-container {
    width: 700px;
    max-width: 95%;
    margin: 2rem auto;
    border-radius: 2rem;
    transition: all 0.3s ease;
}

.calculator-card-1 { background: #E6FAEE; border-radius: 2.5rem; padding: 2rem; box-shadow: 0 30px 50px -12px black; animation: fadeIn 0.4s ease; color: #004D1A; width: 100%; }
.calculator-card-2 { background-color: white; border-radius: 2.5rem; padding: 2rem; box-shadow: 0 30px 50px -12px black; animation: fadeIn 0.4s ease; color: #00668B; width: 100%; }
.calculator-card-3 { background-color: #F0E6FD; border-radius: 2.5rem; padding: 2rem; box-shadow: 0 30px 50px -12px black; animation: fadeIn 0.4s ease; color: #2D0070; width: 100%; }
.calculator-card-4 { background-color: #FFFBE6; border-radius: 2.5rem; padding: 2rem; box-shadow: 0 30px 50px -12px black; animation: fadeIn 0.4s ease; color: #665500; width: 100%; }
.calculator-card-5 { background-color: #FFF4E6; border-radius: 2.5rem; padding: 2rem; box-shadow: 0 30px 50px -12px black; animation: fadeIn 0.4s ease; color: #854400; width: 100%; }
.calculator-card-6 { background: linear-gradient(135deg, #1a237e, #283593); border-radius: 2.5rem; padding: 2rem; box-shadow: 0 30px 50px -12px black; animation: fadeIn 0.4s ease; color: white; width: 100%; }

.carddownp { text-align: center; padding-top: 30px; font-weight: bold; }
.carddownp a:link { color: #4CAF50; }

.calculator-header-1, .calculator-header-2, .calculator-header-3, .calculator-header-4, .calculator-header-5, .calculator-header-6 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px dashed;
    padding-bottom: 1rem;
}

.calculator-header-1 { border-bottom-color: #00C853; }
.calculator-header-2 { border-bottom-color: #004C66; }
.calculator-header-3 { border-bottom-color: #350976; }
.calculator-header-4 { border-bottom-color: #665500; }
.calculator-header-5 { border-bottom-color: #854400; }
.calculator-header-6 { border-bottom-color: #64b5f6; }

.calculator-header-1 h2 { font-size: 1.5rem; margin-left: 135px; color: #004D1A;} 
.calculator-header-2 h2 { font-size: 1.5rem; margin-left: 135px; }
.calculator-header-3 h2 { font-size: 1.5rem; margin-left: 115px; }
.calculator-header-4 h2 { font-size: 1.5rem; margin-left: 120px; }
.calculator-header-5 h2 { font-size: 1.5rem; margin-left: 110px; }
.calculator-header-6 h2 { font-size: 1.5rem; margin-left: 120px; }

.calculator-header-1 span, .calculator-header-2 span, .calculator-header-3 span, .calculator-header-4 span, .calculator-header-5 span, .calculator-header-6 span { font-size: 40px; margin-left: 10px; }


.input-group1, .input-group2, .input-group3, .input-group4, .input-group5, .input-group6 { margin-bottom: 1.5rem; }
.input-group1 label { color: #004D1A; display: block; font-weight: 600; margin-bottom: 0.4rem; }
.input-group2 label { color: #004C66; display: block; font-weight: 600; margin-bottom: 0.4rem; }
.input-group3 label { color: #2D0070; display: block; font-weight: 600; margin-bottom: 0.4rem; }
.input-group4 label { color: #675500; display: block; font-weight: 600; margin-bottom: 0.4rem; }
.input-group5 label { color: #854400; display: block; font-weight: 600; margin-bottom: 0.4rem; }
.input-group6 label { color: #64b5f6; display: block; font-weight: 600; margin-bottom: 0.4rem; }

.input-group1 input, .input-group1 select, .input-group2 input, .input-group2 select, .input-group3 input, .input-group3 select,
.input-group4 input, .input-group4 select, .input-group5 input, .input-group5 select, .input-group6 select, .input-group6 input {
    width: 100%;
    padding: 1rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    background: white;
}
.input-group1 input, .input-group1 select { border: 2px solid #008F3C; }
.input-group2 input, .input-group2 select { border: 2px solid #0099cc; }
.input-group3 input, .input-group3 select { border: 2px solid #7C4DFF; }
.input-group4 input, .input-group4 select { border: 2px solid #CCAA00; }
.input-group5 input, .input-group5 select { border: 2px solid #FF9900; }
/*.input-group6 select, .input-group6 input { border: 2px solid #1A237E; }*/

.result-area1, .result-area2, .result-area3, .result-area4, .result-area6 {
    border-radius: 2rem;
    padding: 1rem 1.5rem;
    margin: 1.2rem 0;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.3rem;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.result-area1 { background: #B3E6C5; }
.result-area2 { background: #C2E6FF; }
.result-area3 { background: #D9C7FF; }
.result-area4 { background: #FFF0B3; }
.result-area6 { background: rgba(255,255,255,0.15); }

.result-value1, .result-value2, .result-value3, .result-value4 { background: white; padding: 0.3rem 1rem; border-radius: 2rem; color: #111; }
.result-value6 { background: white; padding: 0.3rem 1rem; border-radius: 2rem; color: #1a237e; font-weight: bold; width: 100%; outline: none; }

.calc-btn1, .calc-btn2, .calc-btn3, .calc-btn4, .calc-btn5, .calc-btn6 {
    border: none;
    padding: 1rem 2rem;
    font-size: 1.3rem;
    border-radius: 3rem;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: 0.15s;
}
.calc-btn1 { background: #004D1A; color: white; }
.calc-btn2 { background: #00668B; color: white; }
.calc-btn3 { background: #2D0070; color: white; }
.calc-btn4 { background: #665500; color: white; }
.calc-btn5 { background: #854400; color: white; }
.calc-btn6 { background: #ffd600; color: #1a237e; }
.calc-btn1:hover, .calc-btn2:hover, .calc-btn3:hover, .calc-btn4:hover, .calc-btn5:hover, .calc-btn6:hover { transform: scale(1.02); }

.flex-row { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; justify-content: center; }
.password-output { background: #2d2d2d; color: #eee; padding: 1rem; border-radius: 2rem; font-family: monospace; font-size: 1.3rem; text-align: center; margin: 1rem 0; word-break: break-all; }
hr { border: 1px dashed #aaa; margin: 1rem 0; }
.hidden { display: none; }

.back-button {
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: 0.15s;
    backdrop-filter: blur(5px);
    display: inline-block;
}
.back-button:hover { background: rgba(0,0,0,0.8); transform: scale(1.02); }

.brand { margin-top: -10px; text-align: center; width: 100%; }
.brand img { filter: drop-shadow(0 0 5px #00C853); max-width: 100%; height: auto; margin-left: -130px; }
.brand h1 {
    margin-left: 20px;
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.brand p {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: -1rem;
    border-bottom: 2px solid #ffffff;
    display: inline-block;
    text-transform: uppercase;
    font-weight: bold;
}

.page-content {
    width: 100%;
    max-width: 1000px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 3rem;
    padding: 3rem;
    margin: 2rem auto;
    color: white;
    border: 1px solid #444;
    box-shadow: 0 30px 50px -12px black;
}
.page-content h1 { font-size: 3rem; margin-bottom: 2rem; color: #00C853; text-align: center; }
.page-content h2 { font-size: 2rem; margin: 2rem 0 1rem; color: #8ddcff; }
.page-content h3 { font-size: 1.5rem; margin: 1.5rem 0 1rem; color: #ffd600; }
.page-content p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 1.5rem; color: #ddd; }
.page-content ul, .page-content ol { margin: 1rem 0 1rem 2rem; color: #ddd; }
.page-content li { margin: 0.5rem 0; }

.grade-entry {
    background: rgba(0, 200, 83, 0.1);
    border-radius: 1.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #00C853;
}

.remove-grade-btn {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 2rem;
    padding: 0.7rem 1rem;
    margin-top: 0.5rem;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: 0.15s;
}
.remove-grade-btn:hover {
    background-color: #d32f2f;
    transform: scale(1.02);
}

.blog-post-card {
    background: rgba(255,255,255,0.1);
    border-radius: 2rem;
    padding: 2rem;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.blog-post-card:hover { border-color: #00C853; transform: scale(1.02); background: rgba(255,255,255,0.15); }
.blog-post-card h2 { color: #00C853; margin-bottom: 1rem; }
.blog-post-card .read-more { color: #8ddcff; font-weight: bold; display: inline-block; margin-top: 1rem; }

.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: #00C853; font-weight: 600; font-size: 1.1rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 2rem;
    border: 2px solid #444;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus { border-color: #00C853; outline: none; background: rgba(255,255,255,0.15); }
.form-group textarea { min-height: 150px; resize: vertical; }
.submit-btn {
    background: #00C853;
    color: #111;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 3rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.submit-btn:hover { background: #00a844; transform: scale(1.02); box-shadow: 0 10px 20px rgba(0,200,83,0.3); }

.site-footer {
    width: 100%;
    max-width: 1400px;
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 3rem;
    border: 1px solid #444;
}
.footer-links { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.footer-links a { color: #ccc; text-decoration: none; font-size: 1.1rem; transition: all 0.3s ease; padding: 0.5rem 1rem; border-radius: 2rem; cursor: pointer; }
.footer-links a:hover { color: white; background: #00C853; }
.footer-copyright { text-align: center; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #444; color: #888; font-size: 0.9rem; }

.currency-symbol-display {
    background: rgba(255,255,255,0.2);
    border-radius: 2rem;
    padding: 0.8rem;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 0.5rem;
    color: #ffd600;
}

.live-rate-badge { background: #4caf50; color: white; padding: 0.5rem; border-radius: 2rem; text-align: center; font-size: 0.9rem; margin-bottom: 1rem; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media screen and (max-width: 1024px) {
    .toolbox-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .site-header { flex-direction: row; gap: 1rem; padding: 1rem; }
    .nav-menu { display: none; }
    .menu-toggle { display: flex; }
    .mobile-nav { display: block; }
    .page-content { padding: 2rem; }
    .page-content h1 { font-size: 2rem; }
    .brand h1 { font-size: 1.8rem; }
    .brand p { margin-top: -0.5rem; font-size: 0.9rem; }
    .tool-page-container { width: 95%; }
    .toolbox-container {
        gap: 1.5rem;
        grid-template-columns: 1fr;
    }
    .tool-box, .tool-box2, .tool-box3, .tool-box4, .tool-box5, .tool-box6 { width: 100%; max-width: 350px; height: 300px; margin: 0 auto; }
    .tool-btn1, .tool-btn2, .tool-btn3, .tool-btn4, .tool-btn5, .tool-btn6 { padding: 0.7rem 1.5rem; font-size: 1.3rem; min-width: 130px; }
    .tool-description { margin-top: 25px; font-size: 10px; }
    .calculator-card-1, .calculator-card-2, .calculator-card-3, .calculator-card-4, .calculator-card-5, .calculator-card-6 { width: 100%; }
}
@media screen and (max-width: 575px) {
    .brand h1 { font-size: 1.5rem; flex-direction: column; gap: 0.2rem; }
    .brand h1 img { width: 60px; }
    .tool-page-container { width: 95%; }
    .calculator-card-1, .calculator-card-2, .calculator-card-3, .calculator-card-4, .calculator-card-5, .calculator-card-6 { padding: 1.5rem; }
    .toolbox-container { gap: 1.2rem; }
    .tool-box, .tool-box2, .tool-box3, .tool-box4, .tool-box5, .tool-box6 { max-width: 350px; height: 300px; }
    .tool-btn1, .tool-btn2, .tool-btn3, .tool-btn4, .tool-btn5, .tool-btn6 { padding: 0.6rem 1.2rem; font-size: 1.2rem; min-width: 120px; }
    .tool-description { margin-top: 20px; font-size: 9px; }
    .footer-links { gap: 1rem; }
    .footer-links a { font-size: 0.9rem; }
}