@import url(fonts.css);

:root {
    --blue:#397fc5;
    --blue2:#d9e5ec;
    --dark:#1f2b31;
    --back:#f2f4f5;
    --back2:#f3f4f5;
}

body {
    background:var(--back);
    font-family: 'Sora',sans-serif;
    padding:0;
    margin:0;
    color:#1f1e29;
}

#main {
    width:100vw;
    height:100vh;
    padding-top:50px;
    padding-bottom:50px;
    box-sizing: border-box;
    max-width:900px;
    margin:0 auto;
}

.logo {
    width:100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size:18px;
    font-weight: 600;
    gap:8px;
}

.logo svg {
    width:32px;
    height:32px;
    color:inherit;
    fill:inherit;
}

.create {
    width:100%;
    padding:20px;
    box-sizing: border-box;
    background:#ffffff;
    border-radius:10px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    margin:0 auto;
    margin-top:30px;
}

.createhead {
    width:100%;
    font-size:18px;
    font-weight: 700;
}

.createrow {
    width:100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap:30px;
    margin-top:10px;
}

.createrow input {
    width:100%;
    padding:10px;
    box-sizing: border-box;
    font-size:12px;
    font-weight: 500;
    font-family: 'Sora',sans-serif;
    outline:none;
    background:var(--back2);
    border:1px solid rgba(0, 0, 0, 0);
    border-radius:5px;
    color:var(--dark);
    transition: all .1s;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.input-wrapper {
    width:100%;
    position:relative;
    display:flex;
    align-items:center;
}

.input-wrapper svg {
    position:absolute;
    left:10px;
    width:20px;
    height:20px;
    color:rgba(0,0,0,.5);
    pointer-events:none;
    z-index:1;
}

.input-wrapper input {
    width:100%;
    padding:10px;
    padding-left:40px;
    box-sizing:border-box;
}

.createrow input:hover, .createrow input:focus {
    border:1px solid var(--blue);
}

.createrow input::placeholder {
    color:rgba(0, 0, 0, 0.5);
}

.createrow button {
    width:100%;
    max-width:200px;
    padding:7px;
    box-sizing: border-box;
    font-size:13px;
    font-weight: 700;
    font-family: 'Sora',sans-serif;
    background:linear-gradient(#fff,#eff4f7);
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    outline:none;
    border:1px solid transparent;
    border-radius:5px;
    color:var(--dark);
    transition:all .1s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap:1px;
}

.createrow button:hover {
    background:var(--blue);
    color:#ffffff;
}

.createrow button svg {
    width:24px;
    height:24px;
    color:inherit;
    fill:inherit;
    transition: all .1s;
}

.sectionhead {
    width:100%;
    font-size:24px;
    font-weight: 600;
    margin-top:30px;
    display: flex;
    align-items: center;
    gap:8px;
    margin-bottom:20px;
}

.sectionhead svg {
    width:40px;
    height:40px;
    color:inherit;
    fill:inherit;
}

.certitem {
    width:100%;
    padding:20px;
    box-sizing: border-box;
    background:#ffffff;
    border-radius:10px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    margin:0 auto;
    margin-bottom:16px;
    border:2px solid transparent;
    transition: all .1s;
}

.certitem:hover {
    border:2px solid var(--blue);
    box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

.certitemhead {
    width:100%;
    font-size:18px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.certitemcontrols {
    width:fit-content;
    display: flex;
    align-items: center;
    margin-left:auto;
    gap:20px;
}

.certitemcontrolbtn {
    padding:8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background:linear-gradient(#fff,#eff4f7);
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    outline:none;
    border:1px solid transparent;
    border-radius:5px;
    color:var(--dark);
    transition:all .1s;
    cursor: pointer;
}

.certitemcontrolbtn:hover {
    background:var(--blue);
    color:#ffffff;
}

.certitemcontrolbtn svg {
    width:20px;
    height:20px;
    color:inherit;
    fill:inherit;
    transition: all .1;
}

.certiteminforow {
    width:100%;
    display: flex;
    align-items: center;
    gap:30px;
    justify-content: space-between;
    margin-top:10px;
}

.certiteminfoitem {
    padding:12px;
    box-sizing: border-box;
    width:100%;
    display: flex;
    align-items: center;
    gap:8px;
    border-radius:5px;
    background:var(--back2);
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    font-size:13px;
    font-weight: 600;
}

.certiteminfoitem svg {
    width:20px;
    height:20px;
    color:inherit;
    fill:inherit;
}

/* =========================
   EMPTY STATE
========================= */

.empty-state {
    width:100%;
    padding:40px;
    box-sizing:border-box;
    text-align:center;
    font-size:14px;
    font-weight:600;
    color:rgba(0,0,0,.5);
}

/* =========================
   MODAL BACKGROUND
========================= */

.modal {
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
    backdrop-filter:blur(3px);
}

/* =========================
   MODAL CONTENT
========================= */

.modal-content {
    width:100%;
    max-width:500px;
    background:#ffffff;
    border-radius:10px;
    padding:25px;
    box-sizing:border-box;
    box-shadow:
        rgba(0, 0, 0, 0.16) 0px 10px 36px 0px,
        rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

.modal-title {
    width:100%;
    font-size:22px;
    font-weight:700;
    margin-bottom:20px;
}

.modal-content p {
    margin:0;
    margin-bottom:20px;
    line-height:1.5;
    font-size:14px;
}

.modal-content input {
    width:100%;
    padding:12px;
    box-sizing:border-box;
    font-size:13px;
    font-weight:500;
    font-family:'Sora',sans-serif;
    outline:none;
    background:var(--back2);
    border:1px solid transparent;
    border-radius:5px;
    color:var(--dark);
    margin-bottom:15px;
    transition:.1s;
    box-shadow:
        rgba(0, 0, 0, 0.15)
        1.95px
        1.95px
        2.6px;
}

.modal-content input:hover,
.modal-content input:focus {
    border-color:var(--blue);
}

/* =========================
   MODAL BUTTONS
========================= */

.modal-buttons {
    width:100%;
    display:flex;
    justify-content:flex-end;
    gap:12px;
    margin-top:10px;
}

.modal-buttons button {
    min-width:120px;
    padding:10px 20px;
    box-sizing:border-box;
    font-size:13px;
    font-weight:700;
    font-family:'Sora',sans-serif;
    background:linear-gradient(#fff,#eff4f7);
    box-shadow:
        rgba(0, 0, 0, 0.15)
        1.95px
        1.95px
        2.6px;
    outline:none;
    border:1px solid transparent;
    border-radius:5px;
    color:var(--dark);
    transition:.1s;
    cursor:pointer;
}

.modal-buttons button:hover {
    background:var(--blue);
    color:#fff;
}

/* =========================
   DELETE BUTTON
========================= */

#confirm-delete:hover {
    background:#dc3545;
    border-color:#dc3545;
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    #main{
        padding:20px;
        padding-top:30px;
    }

    .createrow{
        flex-direction:column;
        gap:15px;
    }

    .createrow button{
        max-width:none;
    }

    .certiteminforow{
        flex-direction:column;
        gap:10px;
    }

    .certiteminfoitem{
        width:100% !important;
        justify-content:flex-start !important;
    }

    .modal-content{
        width:calc(100vw - 30px);
    }

    .modal-buttons{
        flex-direction:column;
    }

    .modal-buttons button{
        width:100%;
    }
}