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

body{
    background:#111;
    color:#fff;
}

.wrap{
    max-width:1600px;
    margin:auto;
    padding:25px;
}

h1{
    margin-bottom:25px;
    color:#fff;
}

form{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:12px;
    margin-bottom:15px;
}

input,
select,
button{
    height:45px;
    border-radius:8px;
    border:1px solid #444;
    padding:0 12px;
    font-size:15px;
}

input,
select{
    background:#1c1c1c;
    color:#fff;
}

input:focus,
select:focus{
    outline:none;
    border:1px solid #d4af37;
}

button{
    background:#d4af37;
    color:#000;
    font-weight:bold;
    cursor:pointer;
    transition:.2s;
}

button:hover{
    background:#f1c232;
}

#search{
    width:260px;
    margin-bottom:15px;
}

.table-container{
    width:100%;
    overflow-x:hidden;
    border:1px solid #333;
    border-radius:8px;
}

table{
    width:100%;
    
    border-collapse:collapse;
    table-layout:auto;
    background:#181818;
}

th{
    background:#222;
    color:#fff;
    padding:12px;
    border-bottom:1px solid #444;
    white-space:nowrap;
}

td{
    padding:12px;
    border-bottom:1px solid #2e2e2e;
    white-space:nowrap;
    vertical-align:middle;
}

tbody tr:hover{
    background:#252525;
}

td:nth-child(2){
    min-width:220px;
}

td:nth-child(3){
    min-width:180px;
}

td:nth-child(4){
    min-width:180px;
}

td:nth-child(5){
    min-width:120px;
}

td:last-child{
    width:120px;
    text-align:center;
}

.edit-btn{
    background:#d4af37;
    color:#000;
    border:none;
    padding:6px 12px;
    border-radius:5px;
    cursor:pointer;
    margin-right:5px;
}

.delete-btn{
    background:#b91c1c;
    color:#fff;
    border:none;
    padding:6px 12px;
    border-radius:5px;
    cursor:pointer;
}

.edit-btn:hover{
    background:#f1c232;
}

.delete-btn:hover{
    background:#dc2626;
}

.button-group{display:flex;gap:12px;margin:10px 0 16px}
#search{float:right;margin:0 0 12px auto;display:block}
thead{border-bottom:2px solid #d4af37}
tbody tr{transition:.2s}
tbody tr:hover{background:#262626}
td,th{white-space:nowrap}
td:nth-child(2){min-width:260px}
td:nth-child(3){min-width:180px}
td:nth-child(4){min-width:140px}
td:last-child{min-width:120px}
button{min-width:140px}


/* Improved responsive table */
.table-container{overflow:hidden}
table{table-layout:auto;width:100%}
th,td{
 overflow-wrap:anywhere;
 word-break:break-word;
 white-space:normal;
}
th:nth-child(1),td:nth-child(1){width:110px}
th:nth-child(2),td:nth-child(2){width:260px}
th:nth-child(3),td:nth-child(3){width:170px}
th:nth-child(4),td:nth-child(4){width:140px}
th:nth-child(5),td:nth-child(5){width:90px}
th:nth-child(6),td:nth-child(6){width:120px}
th:nth-child(7),td:nth-child(7){width:90px}
th:nth-child(8),td:nth-child(8){width:70px}
th:nth-child(9),td:nth-child(9){width:100px}
th:nth-child(10),td:nth-child(10){width:120px}
th:nth-child(11),td:nth-child(11){width:120px}


/* Column borders + centered text */
table th,
table td{
    border:1px solid #3a3a3a !important;
    text-align:center;
    vertical-align:middle;
}
thead th{
    border-color:#666 !important;
}
