/* Global styles */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    color: #334155;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.d-flex {
    display: flex;
}

.d-block {
    display: block;
}

.d-none {
    display: none;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-column {
    flex-direction: column;
}

.gap-8 {
    gap: 8px;
}

.gap-10 {
    gap: 10px;
}

.gap-15 {
    gap: 15px;
}

.gap-20 {
    gap: 20px;
}

.p-10 {
    padding: 10px;
}

.p-15 {
    padding: 15px;
}

.p-20 {
    padding: 20px;
}

.p-30 {
    padding: 30px;
}

.m-10 {
    margin: 10px;
}

.m-15 {
    margin: 15px;
}

.m-20 {
    margin: 20px;
}

.m-30 {
    margin: 30px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mr-10 {
    margin-right: 10px;
}

.ml-10 {
    margin-left: 10px;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.rounded {
    border-radius: 5px;
}

.rounded-lg {
    border-radius: 10px;
}

.rounded-xl {
    border-radius: 15px;
}

.shadow {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.bg-white {
    background: white;
}

.bg-light {
    background: #f8fafc;
}

.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.text-white {
    color: white;
}

.text-primary {
    color: #667eea;
}

.text-secondary {
    color: #64748b;
}

.text-success {
    color: #10b981;
}

.text-danger {
    color: #ef4444;
}

.text-warning {
    color: #f59e0b;
}

.font-weight-normal {
    font-weight: 400;
}

.font-weight-medium {
    font-weight: 500;
}

.font-weight-semibold {
    font-weight: 600;
}

.font-weight-bold {
    font-weight: 700;
}

.font-size-sm {
    font-size: 0.875rem;
}

.font-size-base {
    font-size: 1rem;
}

.font-size-lg {
    font-size: 1.125rem;
}

.font-size-xl {
    font-size: 1.25rem;
}

.font-size-2xl {
    font-size: 1.5rem;
}

.font-size-3xl {
    font-size: 1.875rem;
}

.font-size-4xl {
    font-size: 2.25rem;
}

.cursor-pointer {
    cursor: pointer;
}

.transition {
    transition: all 0.3s ease;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.position-fixed {
    position: fixed;
}

.position-sticky {
    position: sticky;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

.z-100 {
    z-index: 100;
}

.z-1000 {
    z-index: 1000;
}

/* Content wrapper */
.content {
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background-color: #F0F0F0;
    padding: 10px;
    text-align: center;
    clear: both;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
}

.footer p {
    margin-top: 20px;
    color: rgb(58, 25, 90);
}

/* Logo link */
.logo-link {
    position: absolute;
    top: 45px;
    left: 20px;
    z-index: 1000;
    text-decoration: none;
}

.logo {
    width: 150px;
    height: auto;
    max-width: 100%;
    opacity: 1;
}

/* Icons */
.icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: transparent;
}

.icon {
    width: 50px;
    height: 50px;
}

/* General button styles */
.button, button {
    background-color: rgb(58, 58, 90);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.button:hover, button:hover {
    background-color: rgb(58, 25, 90);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Dashboard sections */
.dashboard {
    padding: 20px;
}

.equipment {
    padding: 20px;
}

.maintenance {
    padding: 20px;
}

/* Data container */
.data-container {
    margin-top: 170px;
    padding: 20px;
}

/* Table wrapper */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Modern table base styles */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.modern-table th,
.modern-table td {
    border: 1px solid #e2e8f0;
    padding: 12px;
    text-align: left;
}

.modern-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modern-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.modern-table tr:hover {
    background-color: #e2e8f0;
}

/* Table search bar */
.table-search-bar {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Clear button */
.clear-btn {
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Pagination */
#pagination-equipment {
    margin-top: 20px;
    text-align: center;
}

/* Responsive table adjustments */
@media (max-width: 1200px) {
    .modern-table {
        font-size: 0.85rem;
    }

    .modern-table th,
    .modern-table td {
        padding: 8px 4px;
    }
}
