/* MAIN LAYOUT */
.student-form{
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.student-table{
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}


/* FORM CARD */
.form-card{
    background: var(--panel-color);
    padding: 25px;
    border-radius: 12px;
    width: 400px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}


/* TITLE */
.form-card h3{
    margin-bottom: 20px;
    color: var(--text-color);
}


/* INPUT GROUP */
.input-group{
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.input-group label{
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.input-group input{
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--panel-color);
    color: var(--text-color);
    outline: none;
    transition: 0.2s;
}

/* INPUT FOCUS EFFECT */
.input-group input:focus{
    border-color: var(--primary-color);
}


/* BUTTONS */
.form-buttons{
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.form-buttons button{
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.form-buttons button:hover{
    opacity: 0.85;
}


/* TABLE CARD */
.table-card{
    background: var(--panel-color);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}


/* TABLE */
table{
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}


/* TABLE HEAD */
thead{
    background: var(--primary-color);
    color: #fff;
}

th{
    padding: 12px;
    text-align: left;
    font-weight: 500;
}


/* TABLE BODY */
td{
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}


/* ROW HOVER */
tbody tr:hover{
    background: rgba(0,0,0,0.03);
}


/* DARK MODE FIX */
body.dark tbody tr:hover{
    background: rgba(255,255,255,0.05);
}
table{
    width: 100%;
    border-collapse: collapse;
    background: var(--panel-color);
}

th, td{
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
/* DARK MODE 

body.dark-mode {
    background-color: #121212;
    color: white;
}

body.dark-mode .student-form,
body.dark-mode .table-card {
    background-color: #1e1e1e;
}

body.dark-mode input {
    background-color: #2c2c2c;
    color: white;
    border: 1px solid #555;
}

body.dark-mode table {
    background-color: #1e1e1e;
}

body.dark-mode th {
    background-color: #333;
}

body.dark-mode td {
    color: #ddd;
}
/* FIX DARK MODE LAYOUT 

body.dark-mode .dash-content {
    background-color: #121212;
}

body.dark-mode .student-form {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    margin: auto;
    max-width: 500px;
}

body.dark-mode .student-table {
    background: transparent; /* remove weird black box */

/*
body.dark-mode .table-card {
    background: #1e1e1e;
    border-radius: 10px;
}
/* TOGGLE SWITCH STYLE 

.mode-toggle {
    width: 50px;
    height: 25px;
    background: #ccc;
    border-radius: 25px;
    position: relative;
    cursor: pointer;
}

.mode-toggle .switch {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2.5px;
    left: 3px;
    transition: 0.3s;
}

/* WHEN DARK MODE ACTIVE 
body.dark-mode .mode-toggle {
    background: #4caf50;
}

body.dark-mode .mode-toggle .switch {
    left: 27px;
}*/

    