/* ==========================================
   GLOBAL RESET (SAFE)
========================================== */
* {
    box-sizing: border-box;
}

/* ==========================================
   BODY STYLING
========================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    color: #333;
}

/* ==========================================
   HEADINGS
========================================== */
h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
}

/* ==========================================
   FORM STYLING
========================================== */
.app-form input,
.app-form select,
.app-form textarea {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    width: 100%;
    margin-bottom: 10px;
    transition: all 0.2s ease-in-out;
}

.app-form input:focus,
.app-form select:focus,
.app-form textarea:focus {
    border-color: #1abc9c;
    box-shadow: 0 0 5px rgba(26, 188, 156, 0.3);
    outline: none;
}

.app-form button {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.app-form button.btn-success {
    background-color: #1abc9c;
    border: none;
    color: #fff;
}

.app-form button.btn-success:hover {
    background-color: #16a085;
}

.app-form button.btn-primary {
    background-color: #3498db;
    border: none;
    color: #fff;
}

.app-form button.btn-primary:hover {
    background-color: #2980b9;
}

.app-form button.btn-default {
    background-color: #ecf0f1;
    border: 1px solid #bdc3c7;
    color: #2c3e50;
}

.app-form button.btn-default:hover {
    background-color: #dfe4ea;
}



.input-small{
    width:80px !important;
    display:inline-block;
}

/* ==========================================
   TABLE STYLING
========================================== */
.table-responsive {
    overflow-x: auto;
    background-color: #fff;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    font-size: 13px;
    padding: 8px 10px;
    vertical-align: middle;
    text-align: left;
}

.table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    border-top: 1px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.table td button {
    padding: 4px 8px;
    font-size: 12px;
}

.shrink-col {
    max-width: 150px;
    word-break: break-word;
}

/* ===============================
   Table Row Styling
   =============================== */

table tbody tr:nth-child(odd){
    background:#ffb3b3;
/*    background:#f9f9f9;*/
}

table tbody tr:nth-child(even){
    background:#e8f4ff;
}

table tbody tr:hover{
    background:#ffeeba;
}
/* ==========================================
   MODAL STYLING
========================================== */
.modal-content {
    border-radius: 8px;
    overflow: hidden;
}

.modal-header {
    background-color: #1abc9c;
    color: #fff;
    font-weight: 600;
    border-bottom: none;
}

.modal-header .close {
    color: #fff;
    opacity: 1;
}

.modal-footer {
    border-top: none;
}

/* ==========================================
   RESPONSIVE IMPROVEMENTS
========================================== */
@media (max-width: 768px) {
    .table th,
    .table td {
        font-size: 12px;
        padding: 6px;
    }
}
