@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #1f2937;
    margin: 0;
    min-height: 100vh;
}

header {
    background: linear-gradient(to right, #2563eb, #60a5fa);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

header h1 {
    color: #f3f4f6;
    font-weight: 700;
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 1rem;
}

h1, h2, h3 {
    font-weight: 700;
    color: #1e40af;
}

input, textarea {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

button, .btn {
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
    transition: all 0.3s ease;
}

button:hover, .btn:hover {
    background: linear-gradient(to right, #1e40af, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.btn-teal {
    background: linear-gradient(to right, #14b8a6, #2dd4bf);
}

.btn-teal:hover {
    background: linear-gradient(to right, #0f766e, #14b8a6);
    color: #ffffff;
}

.btn-indigo {
    background: linear-gradient(to right, #4f46e5, #7c3aed);
}

.btn-indigo:hover {
    background: linear-gradient(to right, #3730a3, #4f46e5);
    color: #ffffff;
}

.btn-purple {
    background: linear-gradient(to right, #8b5cf6, #a78bfa);
}

.btn-purple:hover {
    background: linear-gradient(to right, #6d28d9, #8b5cf6);
    color: #ffffff;
}

.btn-orange {
    background: linear-gradient(to right, #f97316, #fb923c);
}

.btn-orange:hover {
    background: linear-gradient(to right, #c2410c, #f97316);
    color: #ffffff;
}

.status-active {
    background: #10b981;
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.status-inactive {
    background: #ef4444;
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.table-auto {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    overflow-x: hidden;
}

.table-auto th, .table-auto td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.table-auto th {
    background: #f9fafb;
    font-weight: 600;
    color: #1e40af;
}

.table-auto tr:hover {
    background: #f3f4f6;
}

img {
    border-radius: 4px;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.5);
    z-index: 10;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.nav-link {
    color: #f3f4f6;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* DataTables Styling */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin-bottom: 1rem;
    color: #1f2937;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.5rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0.5rem;
    margin: 0 0.25rem;
    color: #1e40af;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f3f4f6;
    border-color: #3b82f6;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

/* Compact Table Styling */
.table-auto.compact th, .table-auto.compact td {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    white-space: normal;
    word-wrap: break-word;
    overflow: hidden;
}

.table-auto.compact img {
    width: 12px;
    height: 12px;
    margin: 0 2px;
}

@media (max-width: 640px) {
    .container {
        padding: 0.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    button, .btn {
        width: 100%;
        padding: 0.75rem;
    }

    .table-auto {
        overflow-x: hidden;
    }

    .table-auto th, .table-auto td {
        font-size: 0.75rem;
        padding: 0.25rem;
    }

    .table-auto.compact img {
        width: 10px;
        height: 10px;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: center;
        font-size: 0.75rem;
    }
}