/* ======================================
   TOOLPACK Konwerter
   Pierwsza wersja wyglądu narzędzia
====================================== */


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


:root {

    --blue:#3B82F6;
    --green:#10B981;

    --text:#1f2937;
    --light:#64748b;

    --background:#f8fafc;
    --white:#ffffff;

}



body {

    font-family: "Inter",sans-serif;
    background: var(--background);
    color: var(--text);

}


/* ======================================
   GŁÓWNY KONTENER
====================================== */


.tool-container {

    max-width: 900px;
    margin: auto;
    padding: 25px 24px;

}

/* ======================================
   POWRÓT
====================================== */


.back {

    display:inline-block;

    margin-bottom:35px;

    text-decoration:none;

    color:#64748b;

    font-weight:500;

    transition:.2s;

}


.back:hover {

    color:var(--blue);

}



/* ======================================
   NAGŁÓWEK NARZĘDZIA
====================================== */


.tool-title {

    display:flex;

    align-items:center;

    gap:18px;

    margin-bottom:40px;

}

/* ======================================
   TOOL TABS
====================================== */

.tool-tabs{

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 16px;

}

.tab{

    padding: 14px 22px;
    border: none;
    border-radius: 999px;
    background: white;
    color: #334155;
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow:
    0 6px 18px rgba(0,0,0,.05);
    transition:.2s;

}

.tab:hover{

    color: var(--blue);
    transform: translateY(-3px);

}

.tab.active{

    color: white;
    cursor: default;
    pointer-events: none;
    background:
    linear-gradient(
        135deg,
        var(--blue),
        var(--green)
    );

}

.tool-icon {

    width:60px;
    height:60px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:white;
    font-size:28px;
    box-shadow:
    0 10px 25px rgba(0,0,0,.06);

}



.tool-title h1 {

    font-size: 36px;
   letter-spacing: -1px;

}



.tool-title p {

    margin-top: 8px;
    color: var(--light);
    font-size: 15px;

}

/* ======================================
   KARTA KALKULATORA
====================================== */


.calculator-card {

    background:white;
    border-radius:24px;
    padding:28px;
    box-shadow:
    0 15px 35px rgba(0,0,0,.05);

}


.input-group {

    margin-bottom:18px;

}

.input-group label {

    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 16px;

}



.input-group input {

    width: 100%;
    height: 58px;
    border: none;
    outline: none;
    background: #f8fafc;
    border-radius:16px;
    padding: 0 18px;
    font-size: 18px;
    font-family: inherit;
    transition: .2s;

}



.input-group input:focus {

    background:white;
    box-shadow:
    0 0 0 3px rgba(59,130,246,.15);

}


/* ======================================
   PRZYCISK
====================================== */

.calculator-card button {

    width: 100%;
    height: 58px;
    border: none;
    border-radius: 16px;
    background:
    linear-gradient(
        135deg,
        var(--blue),
        var(--green)
    );

    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;

}

.calculator-card button:hover {

    transform: translateY(-2px);
    box-shadow:
        0 12px 25px rgba(59,130,246,.25);

}

/* ======================================
   WYNIK
====================================== */


.result-card {

    margin-top: 20px;
    background: white;
    border-radius: 24px;
    padding: 22px;
    text-align: center;
    box-shadow:
    0 10px 30px rgba(0,0,0,.04);

}


.result-card h2 {

    font-size:20px;

}


.result-number {

    margin: 20px 0 10px;
    font-size: 42px;
    font-weight: 700;
    background:
    linear-gradient(
        135deg,
        var(--blue),
        var(--green)
    );

    -webkit-background-clip:text;

    -webkit-text-fill-color:transparent;

}

.result-status {

    margin-top: 15px;
    padding: 10px 18px;
    display: inline-block;
    border-radius: 999px;
    font-weight: 600;
    background: #eff6ff;
    color: #2563eb;

}

.result-card p {

    color:var(--light);

}

/* ======================================
   POLECANE
====================================== */


.suggestions {

    margin-top:30px;

}


.suggestions h2 {

    font-size:22px;
    margin-bottom:20px;

}


.suggestion-list {

    display:flex;
    flex-wrap: wrap;
    gap: 15px;

}


.suggestion-list a {


    text-decoration: none;
    background: white;
    color: #334155;
    padding: 14px 22px;
    border-radius: 999px;
    box-shadow:
    0 6px 18px rgba(0,0,0,.05);
    transition:.2s;

}

.suggestion-list a:hover {

    color:var(--blue);
    transform:translateY(-3px);

}

.result-status {

     margin-top :10px;
     padding: 8px 16px;
     display: inline-block;
     border-radius: 999px;
     font-weight: 600;
     background: #eff6ff;
     color: #2563eb;

}

.result-info {

    margin-top: 10px;
    color: #64748b;
    font-size: 14px;

}
/* ======================================
   HEADER
====================================== */

.tool-header{

    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;

}



.tool-logo{

    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);

}


.tool-logo-icon{

    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: white;
    background: linear-gradient(
        135deg,
        var(--blue),
        var(--green)
    );

}

.tool-logo span{

    font-size: 24px;
    font-weight: 700;

}

.back-link{

    text-decoration: none;
    color: var(--light);
    font-weight: 600;
    transition: .2s;

}


.back-link:hover{

    color:var(--blue);

}
/* ======================================
   AGE RESULT
====================================== */


.age-result {

    display: flex;
    justify-content: center;
    gap: 35px;
    margin: 25px 0;

}


.age-result div {

    display: flex;
    flex-direction: column;
    align-items: center;

}


.age-result strong {

    font-size: 42px;
    font-weight: 700;
    background:
    linear-gradient(
        135deg,
        var(--blue),
        var(--green)
    );

    -webkit-background-clip:text;

    -webkit-text-fill-color:transparent;

}

.age-result span {

    margin-top: 5px;
    color: var(--light);
    font-size: 15px;
    font-weight: 500;

}

@media(max-width:600px){


.age-result {

    gap:15px;

}


.age-result strong {

    font-size:32px;

}


.age-result span {

    font-size:13px;

}


}
/* ======================================
   DATE INPUTS
====================================== */


.date-inputs {

    display:flex;

    gap:15px;

}


.date-inputs input {

    flex: 1;
    height: 58px;
    border: none;
    outline: none;
    background: #f8fafc;
    border-radius: 16px;
    padding: 0 15px;
    font-size: 18px;
    font-family:inherit;
    text-align:center;
    transition:.2s;

}



.date-inputs input:focus {

    background:white;

    box-shadow:
    0 0 0 3px rgba(59,130,246,.15);

}

/* ======================================
   CONVERTER
====================================== */


.converter-main {

    display:flex;
    flex-direction:column;
    gap:25px;

}



.converter-main .input-group {

    margin-bottom:0;

}



.converter-main input {

    width:100%;

}



/* ======================================
   CONVERSION ROW
====================================== */


.conversion-row {

    display:flex;

    align-items:center;

    justify-content:center;

    gap:15px;

}



.conversion-row select {


    flex:1;

    height:58px;

    border:none;

    outline:none;

    background:#f8fafc;

    border-radius:16px;

    padding:0 18px;

    font-size:17px;

    font-family:inherit;

    color:var(--text);

    cursor:pointer;

    transition:.2s;

}



.conversion-row select:focus {


    background:white;

    box-shadow:
    0 0 0 3px rgba(59,130,246,.15);

}



.arrow {

    font-size:28px;

    color:#64748b;

    font-weight:600;

}



/* ======================================
   MOBILE
====================================== */


@media(max-width:600px){


    .conversion-row {

        gap:10px;

    }


    .arrow {

        font-size:22px;

    }


}

@media(max-width:500px){


    .date-inputs {

        gap:10px;

    }


    .date-inputs input {

        font-size:16px;

    }
.conversion-row select {

    font-size:14px;
    padding:0 10px;

}


.conversion-row {

    gap:8px;

}

}