/* ===========================
   GLOBAL
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#f5f6fa;
    color:#333;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

/* ===========================
   LAYOUT
=========================== */

.container{
    display:flex;
    min-height:100vh;
}

/* ===========================
   SIDEBAR
=========================== */

.sidebar{
    width:240px;
    background:#1d1f27;
    color:#fff;
    overflow-y:auto;
}

.logo{
    height:58px;
    background:#ff5b5b;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:18px;
    font-weight:bold;
}

.menu li a{
    display:block;
    color:#bfc5d2;
    padding:14px 22px;
    transition:.3s;
    font-size:15px;
}

.menu li a i{
    width:22px;
}

.menu li a:hover{
    background:#2b2d36;
    color:#fff;
}

.menu-title{
    padding:18px 22px 8px;
    font-size:12px;
    color:#8f96a8;
    font-weight:bold;
    text-transform:uppercase;
}

.active a{
    background:#30333d;
    color:#fff !important;
    border-left:4px solid #00b050;
}

/* ===========================
   CONTENT
=========================== */

.content{
    flex:1;
    padding:25px;
}

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

.top-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.top-header h1{
    font-size:28px;
    margin-bottom:5px;
}

.breadcrumb{
    color:#888;
    font-size:14px;
}

.breadcrumb span{
    margin:0 8px;
}

.user-menu{
    display:flex;
    align-items:center;
    gap:18px;
    font-size:18px;
}

.user-menu span{
    font-size:15px;
    font-weight:bold;
}

/* ===========================
   CARD
=========================== */

.card{
    background:#fff;
    border-radius:8px;
    padding:25px;
    margin-bottom:25px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.card h2{
    margin-bottom:8px;
}

.description{
    color:#888;
    margin-bottom:25px;
}

/* ===========================
   SEARCH
=========================== */

.search-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.form-group{
    display:flex;
    flex-direction:column;
}

.form-group label{
    font-weight:bold;
    margin-bottom:8px;
}

.form-group input,
.form-group select{

    height:42px;
    border:1px solid #d9d9d9;
    border-radius:5px;
    padding:0 12px;
}

/* ===========================
   BUTTON
=========================== */

.button-group{
    margin-top:25px;
}

.btn-search{

    background:#00b050;
    color:white;
    padding:11px 22px;
    border:none;
    border-radius:4px;
    cursor:pointer;
    margin-right:10px;
}

.btn-search:hover{

    background:#009944;
}

.btn-add{

    background:#28a745;
    color:#fff;
    padding:11px 22px;
    border-radius:4px;
    display:inline-block;
}

.btn-add:hover{

    background:#218838;
}

/* ===========================
   TABLE
=========================== */

.table-header{

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

.table-responsive{

    overflow:auto;
}

table{

    width:100%;
    border-collapse:collapse;
}

table th{

    background:#f3f4f7;
    padding:12px;
    text-align:left;
    border-bottom:2px solid #ddd;
}

table td{

    padding:12px;
    border-bottom:1px solid #eee;
}

table tbody tr:hover{

    background:#fafafa;
}
.action-link{

    color:#0d6efd;
    text-decoration:underline;
    font-weight:500;
    cursor:pointer;

}

.action-link:hover{

    color:#0a58ca;

}
/* ===========================
   STATUS
=========================== */

.status{

    padding:5px 12px;
    border-radius:20px;
    color:#fff;
    font-size:13px;
}

.active{

    background:#28a745;
}

.inactive{

    background:#dc3545;
}

/* ===========================
   EDIT BUTTON
=========================== */

.btn-edit{

    background:#ffc107;
    color:#000;
    padding:6px 12px;
    border-radius:4px;
    font-size:13px;
}
.btn-delete{

    background:#dc3545;
    color:#fff;
    padding:6px 12px;
    border-radius:4px;
    font-size:13px;
    border:none;
    cursor:pointer;

}
.action-column{

    display:flex;
    justify-content:center;
    align-items:center;
    gap:6px;
}
.btn-detail{

    display: inline-block;
    padding: 6px 12px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;

}

.btn-detail:hover{

    background-color: #0056b3;

}

/* ===========================
   PAGINATION
=========================== */

.pagination{

    display:flex;
    justify-content:flex-end;
    gap:8px;
    margin-top:20px;
}

.pagination button{

    width:35px;
    height:35px;
    border:1px solid #ddd;
    background:#fff;
    cursor:pointer;
}

.pagination .active{

    background:#00b050;
    color:#fff;
    border:none;
}

/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:992px){

    .search-grid{

        grid-template-columns:1fr;
    }

    .sidebar{

        width:200px;
    }

}

@media(max-width:768px){

    .container{

        flex-direction:column;
    }

    .sidebar{

        width:100%;
    }

    .top-header{

        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

}
/* ===========================
   TEXTAREA
=========================== */

.form-group textarea{

    width:100%;
    border:1px solid #d9d9d9;
    border-radius:5px;
    padding:12px;
    resize:vertical;
    min-height:100px;
    font-size:14px;
}

.form-group textarea:focus,
.form-group input:focus,
.form-group select:focus{

    outline:none;
    border-color:#00b050;
}
/* ===========================
   FDS History Search
=========================== */

.search-container{

    background:#fff;
    border:1px solid #ddd;
    border-radius:5px;
    padding:20px;
    margin-bottom:20px;

}

.search-container h3{

    margin-bottom:20px;

}

.search-row{

    display:flex;
    gap:20px;
    margin-bottom:15px;

}

.search-group{

    flex:1;
    display:flex;
    flex-direction:column;

}

.search-group label{

    font-weight:600;
    margin-bottom:6px;

}

.search-group input,
.search-group select{

    padding:8px;
    border:1px solid #ccc;
    border-radius:4px;

}

.full-width{

    width:100%;

}

.search-action{

    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:15px;

}

.btn-shortcut{

    padding:8px 15px;
    border:1px solid #ccc;
    background:#f5f5f5;
    border-radius:4px;
    cursor:pointer;

}

.btn-shortcut:hover{

    background:#e9ecef;

}

.btn-search{

    background:#28a745;
    color:#fff;
    border:none;
    padding:8px 30px;
    border-radius:4px;
    cursor:pointer;
    font-weight:600;

}

.btn-search:hover{

    background:#218838;

}
.btn-detail{
    background:#007bff;
    color:#fff;
    padding:6px 12px;
    border-radius:4px;
    text-decoration:none;
    font-size:13px;
}

.btn-detail:hover{
    background:#0056b3;
}
.btn-save{
    background:#28a745;
    color:#fff;
    border:none;
    padding:8px 20px;
    border-radius:4px;
    cursor:pointer;
}

.btn-save:hover{
    background:#218838;
}
.btn-secondary{

    background:#0095da;
    color:#fff;
    border:none;
    padding:10px 18px;
    border-radius:4px;
    cursor:pointer;
    margin-right:8px;
    font-weight:600;

}

.btn-secondary:hover{

    background:#007dc0;

}
.search-action{

    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:15px;

}

.btn-secondary{

    background:#0095da;
    color:#fff;
    border:none;
    padding:10px 18px;
    border-radius:4px;
    cursor:pointer;
    font-weight:600;

}

.btn-secondary:hover{

    background:#007dc0;

}

.btn-search{

    background:#28a745;
    color:#fff;
    border:none;
    padding:10px 35px;
    border-radius:4px;
    cursor:pointer;
    font-weight:600;

}

.btn-search:hover{

    background:#218838;

}
.quick-filter{

    margin-top:10px;
    display:flex;
    gap:8px;

}

.quick-filter-group{

    display:flex;
    gap:10px;
    align-items:center;

}

.search-grid-date{

    display:grid;
    grid-template-columns:300px 300px auto;
    gap:20px;
    align-items:end;
}
.search-grid-time{
    display:grid;
    grid-template-columns:300px 300px;
    gap:20px;
    margin-top:20px;
}
.detail-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.section-title{
    margin-bottom:20px;
    padding-bottom:10px;
    border-bottom:1px solid #ddd;
    font-size:16px;
    font-weight:600;
    color:#333;
}

textarea{
    width:100%;
    padding:10px 12px;
    border:1px solid #ccc;
    border-radius:4px;
    resize:none;
    background:#f8f8f8;
    font-family:inherit;
    font-size:14px;
    box-sizing:border-box;
}

.button-group{
    margin-top:20px;
    display:flex;
    justify-content:flex-end;
}

/*==================================================
    TOAST
==================================================*/

.toast{

    position:fixed;

    top:20px;

    right:20px;

    min-width:260px;

    padding:14px 18px;

    border-radius:8px;

    color:#fff;

    font-size:14px;

    font-weight:500;

    opacity:0;

    transform:translateY(-20px);

    transition:.3s;

    z-index:9999;

}

.toast.show{

    opacity:1;

    transform:translateY(0);

}

.toast.success{

    background:#27ae60;

}

.toast.error{

    background:#e74c3c;

}

.toast.warning{

    background:#f39c12;

}