
/* refactored style */
body{font-family: Inter, Arial, sans-serif; margin:0; padding:0; background:#f6f7fb; color:#222}

.header {
    background: #fff;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #e6e9ef;
    position: relative;
    min-height: 100px; /* gives space for bottom alignment */
}

.container{max-width:1100px;margin:20px auto;padding:18px;background:#fff;box-shadow:0 6px 18px rgba(20,20,40,0.04);border-radius:8px}
.logo-group {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-group img {
    height: 48px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}


.user-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}


.user-info {
    font-size: 0.95em;
    color: #333;
    background: #eef7ff;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}


.nav{
    display: flex;
    flex-direction: row;
    gap: 10px;
    position: absolute;
    bottom: 10px;
    right: 18px;
}


.btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    background: #0070f3;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.btn.logout {
    background: #d9534f; /* Bootstrap-style red */
}

.btn:hover {
    opacity: 0.9;
}

.btn.logout:hover {
    background: #c9302c;
}

/*
.table{width:100%;border-collapse:collapse;margin-top:12px}
.table th,.table td{border:1px solid #e9edf3;padding:8px;text-align:left}
*/
.notice{padding:10px;background:#eef7ff;border:1px solid #d6ecff;border-radius:6px;margin-bottom:12px}
.small{font-size:0.9em;color:#555}
input,select{padding:8px;border:1px solid #e0e4ea;border-radius:6px}
iframe{background:#fff}
.menu {background-color: white;padding: 30px;border-radius: 10px;box-shadow: 0 3px 10px rgba(0,0,0,0.1);text-align: center;}
.menu > a {display: block;width: 300px; margin: 10px auto;text-decoration: none;font-weight: bold;color: #000080;background-color: #CDE5FF;padding: 12px 20px;border-radius: 5px;}
.menu > a:hover {background-color: #B0D4FF;}


h1 {
    text-align: center;
    color: #000080;
    margin-bottom: 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.card {
    all: unset;
    display: block;
    background-color: white;
    border: 2px solid #cde5ff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: #000;
}

.card:hover {
    transform: scale(1.04);
    background-color: #f0f8ff;
}

.icon {
    font-size: 50px;
    margin-bottom: 10px;
    color: #000080;
}

table { width: 100%; background: #fff; border-collapse: collapse; margin-top: 10px; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
th, td { padding: 10px; border: 1px solid #ccc; text-align: center; }
th { background: #cde5ff; color: #000080; cursor: pointer; }
tr:hover { background: #f9f9f9; }
.action-btn { padding: 6px 12px; border-radius: 4px; text-decoration: none; font-weight: bold; display: inline-block; }
.edit-btn { background: #B0D4FF; color: #000; border: 1px solid #000080; }
.delete-btn { background: #FFCCCC; color: #900; border: 1px solid #AA0000; }

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    text-align: center;
}

.modal-content input, .modal-content textarea {
    width: 90%;
    margin-bottom: 10px;
    padding: 6px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}
.verify-box {
    max-width: 400px; margin: auto; background: white; padding: 20px;
    border: 1px solid #ccc; border-radius: 10px;
}

