/* ==========================================
   GET TRAINING CENTER - STUDENT PORTAL
   ADVANCED CSS DESIGN
========================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root{
    --primary:#4f46e5;
    --secondary:#7c3aed;
    --success:#10b981;
    --danger:#ef4444;
    --warning:#f59e0b;
    --info:#06b6d4;
    --dark:#1e293b;
    --light:#ffffff;
}

/* ==========================================
   RESET
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
}

/* ==========================================
   BODY
========================================== */

body{
    min-height:100vh;
    padding:30px;

    background:linear-gradient(
        -45deg,
        #4f46e5,
        #7c3aed,
        #ec4899,
        #06b6d4
    );

    background-size:400% 400%;

    animation:gradientBG 12s ease infinite;

    position:relative;
    overflow-x:hidden;
}

/* ==========================================
   ANIMATED BACKGROUND
========================================== */

body::before{
    content:'';
    position:fixed;
    width:300px;
    height:300px;
    background:rgba(255,255,255,.15);
    border-radius:50%;
    top:-100px;
    left:-100px;
    animation:float1 10s infinite;
}

body::after{
    content:'';
    position:fixed;
    width:250px;
    height:250px;
    background:rgba(255,255,255,.1);
    border-radius:50%;
    right:-80px;
    bottom:-80px;
    animation:float2 12s infinite;
}

/* ==========================================
   MAIN CONTAINER
========================================== */

.container{

    max-width:900px;

    margin:auto;

    background:rgba(255,255,255,.18);

    backdrop-filter:blur(20px);

    border:1px solid rgba(255,255,255,.2);

    border-radius:30px;

    padding:35px;

    box-shadow:
    0 20px 50px rgba(0,0,0,.25);

    animation:fadeUp 1s ease;
}

/* ==========================================
   HEADINGS
========================================== */

h1{
    text-align:center;
    font-size:40px;
    margin-bottom:10px;
    font-weight:800;
    color:#fff;
}

h2{
    text-align:center;
    font-size:30px;
    margin-bottom:20px;
    color:#fff;
}

h3{
    text-align:center;
    color:#f8fafc;
    margin-bottom:25px;
}

.portal-title{

    text-align:center;

    font-size:42px;

    font-weight:800;

    background:linear-gradient(
        90deg,
        #ffffff,
        #facc15,
        #ffffff
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

/* ==========================================
   FORM
========================================== */

form{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));

    gap:15px;
}

/* ==========================================
   INPUTS
========================================== */

input,
select{

    width:100%;

    padding:14px 16px;

    border:none;

    outline:none;

    border-radius:15px;

    background:rgba(255,255,255,.85);

    transition:.4s;

    font-size:15px;
}

input:focus,
select:focus{

    transform:translateY(-2px);

    box-shadow:
    0 0 20px rgba(79,70,229,.5);
}

/* ==========================================
   BUTTON
========================================== */

button{

    grid-column:1/-1;

    padding:15px;

    border:none;

    border-radius:15px;

    font-size:17px;

    font-weight:600;

    color:white;

    cursor:pointer;

    background:linear-gradient(
        135deg,
        #4f46e5,
        #7c3aed
    );

    transition:.4s;
}

button:hover{

    transform:
    translateY(-4px)
    scale(1.02);

    box-shadow:
    0 15px 30px rgba(79,70,229,.45);
}

/* ==========================================
   LINKS
========================================== */

a{

    color:#facc15;

    text-decoration:none;

    font-weight:600;

    transition:.3s;
}

a:hover{

    color:white;

    letter-spacing:1px;
}

/* ==========================================
   TABLE
========================================== */

table{

    width:100%;

    margin-top:20px;

    border-collapse:collapse;

    overflow:hidden;

    border-radius:15px;

    background:rgba(255,255,255,.15);
}

table tr{

    transition:.3s;
}

table tr:hover{

    background:rgba(255,255,255,.2);
}

table td{

    padding:15px;

    color:white;

    border-bottom:
    1px solid rgba(255,255,255,.15);
}

table td:first-child{

    font-weight:700;

    color:#facc15;

    width:35%;
}

/* ==========================================
   DASHBOARD ACTION BUTTONS
========================================== */

.action-buttons{

    margin-top:25px;

    text-align:center;
}

.action-buttons a{

    display:inline-block;

    margin:8px;

    padding:12px 22px;

    border-radius:12px;

    color:white;
}

.update-btn{

    background:linear-gradient(
        135deg,
        #06b6d4,
        #3b82f6
    );
}

.logout-btn{

    background:linear-gradient(
        135deg,
        #ef4444,
        #dc2626
    );
}

.update-btn:hover,
.logout-btn:hover{

    transform:translateY(-3px);
}

/* ==========================================
   SUCCESS MESSAGE
========================================== */

.success{

    background:rgba(16,185,129,.25);

    border-left:5px solid #10b981;

    padding:15px;

    color:white;

    border-radius:10px;

    margin-bottom:20px;
}

/* ==========================================
   ERROR MESSAGE
========================================== */

.error{

    background:rgba(239,68,68,.25);

    border-left:5px solid #ef4444;

    padding:15px;

    color:white;

    border-radius:10px;

    margin-bottom:20px;
}

/* ==========================================
   PROFILE CARD
========================================== */

.profile-card{

    text-align:center;

    margin-bottom:25px;
}

.profile-avatar{

    width:100px;

    height:100px;

    border-radius:50%;

    background:white;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:45px;

    margin:auto;

    margin-bottom:10px;
}

/* ==========================================
   ANIMATIONS
========================================== */

@keyframes gradientBG{

    0%{
        background-position:0% 50%;
    }

    50%{
        background-position:100% 50%;
    }

    100%{
        background-position:0% 50%;
    }
}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(30px);
    }

    to{

        opacity:1;

        transform:translateY(0);
    }
}

@keyframes float1{

    0%,100%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(30px);
    }
}

@keyframes float2{

    0%,100%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-30px);
    }
}

/* ==========================================
   MOBILE
========================================== */

@media(max-width:768px){

    body{
        padding:15px;
    }

    .container{
        padding:20px;
    }

    h1{
        font-size:30px;
    }

    h2{
        font-size:24px;
    }

    form{
        grid-template-columns:1fr;
    }
}