/* Example topbar styles in master.css */

.navbar {
    border-radius: 0;
    box-shadow: 0 4px 10px rgba(0, 255, 255, 0.2);
}

.navbar-text {
    font-family: 'Poppins', sans-serif;
}

.btn-outline-success {
    border-width: 2px;
    transition: 0.3s;
}

.btn-outline-success:hover {
    background-color: #0ff;
    color: #000;
    box-shadow: 0 0 15px #0ff;
}

/* Sidebar Styles */
.sidebar-container {
    background: linear-gradient(180deg, #000428, #004e92);
    min-height: 100vh;
    color: #fff;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.5);
    border-right: 2px solid #0f0;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00ff99;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.sidebar-nav .nav-link {
    color: #cfd8dc;
    padding: 8px 10px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

.sidebar-nav .nav-link:hover {
    background: rgba(0, 255, 153, 0.2);
    color: #00ff99;
    transform: translateX(5px);
}

.sidebar-nav .nav-link i {
    color: #00ffcc;
}

.offcanvas {
    background: linear-gradient(180deg, #000428, #004e92);
}

/* View page designs */

/* Truncate long text to 200 characters */
.truncate {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Small image preview in table */
.img-preview {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

/* Mobile card styling */
.service-card {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    height: 150px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.service-actions {
    text-align: center;
    margin-top: 8px;
}

.service-actions a {
    margin: 0 5px;
    color: #0d6efd;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.service-actions a:hover {
    transform: scale(1.2);
    color: #00ff99;
}

.datatable-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    /* higher than table rows */
    background: #fff;
    /* match page background */
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

/* Optional: keep pagination row sticky at bottom */
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 10px 0;
    border-top: 1px solid #dee2e6;
    z-index: 1020;
}

/* Fix search input alignment */
div.dataTables_filter {
    text-align: right !important;
}

div.dataTables_filter input {
    margin-left: 0.5em;
}

/* Form page design */

.form-section {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.form-section:hover {
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
}