/*start sidebar color*/
aside > .sidebar {
  background-color: #343a40;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

aside > .brand-link {
  background-color: #343a40;
  transition: all 0.3s ease;
}

aside > .brand-link:hover {
  opacity: 0.9;
}

ul > li > .nav-link > .fa-caret-right {
	padding-left: 12px;
	margin-right: 4px;
}

/* Modern sidebar navigation links */
.nav-sidebar .nav-link {
  transition: all 0.2s ease;
  border-radius: 6px;
  margin: 1px 6px;
  padding: 8px 12px !important;
}

.nav-sidebar .nav-link:hover {
  background-color: rgba(255,255,255,0.1);
  transform: translateX(3px);
}

.nav-sidebar .nav-link.active {
  background-color: rgba(255,255,255,0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Reduce spacing for menu items */
.nav-sidebar .nav-item {
  margin-bottom: 2px;
}

.nav-sidebar .nav-item .nav-link {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.nav-sidebar .nav-treeview .nav-item .nav-link {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  padding-left: 20px !important;
}

.nav-sidebar .nav-treeview {
  margin-left: 0;
  padding-left: 0;
}

.nav-sidebar .nav-treeview .nav-item {
  margin-bottom: 1px;
}

/* Reduce overall nav spacing */
.nav-sidebar {
  padding-top: 8px;
  padding-bottom: 8px;
}

.nav-sidebar .nav-item.has-treeview {
  margin-bottom: 3px;
}

.nav-sidebar .nav-item.has-treeview > .nav-link {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* Reduce icon spacing */
.nav-sidebar .nav-link .nav-icon {
  margin-right: 8px;
  width: 20px;
}

/*end sidebar color*/
div > .container-fluid > .content-wrapper {
	background-color: #f8f9fa;
	padding-left: 20px;
	padding-right: 20px;
	padding-top: 20px;
	padding-bottom: 20px;
}

nav.border-bottom  {
	/*background-color: #757b82;*/
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	background-color: #fff;
}

nav > .navbar-nav > .nav-link {
	font-size: 18px;
	font-weight: 600;
	transition: all 0.2s ease;
}

nav > .navbar-nav > .nav-link:hover {
	opacity: 0.8;
}

.crop {
    width: 100px;
    height: 80px;
    overflow: hidden;
    border-radius: 10%;
}

.crop img {
    width: 400px;
    height: 300px;
    margin: -75px 0 0 -100px;
}

.wrapper, body, html {
    font-size: 14px;
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
}


.brand-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.navbar-nav>.user-menu .user-image {
    float: left;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 10px;
    margin-top: -2px;
}

.img-circle {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.error {
    color: red;
}

/*.th-title {
    font-weight: bold;
    font-size: 14px;
}*/

.gallery {
-webkit-column-count: 3;
-moz-column-count: 3;
column-count: 3;
-webkit-column-width: 33%;
-moz-column-width: 33%;
column-width: 33%; }
.gallery .pics {
-webkit-transition: all 350ms ease;
transition: all 350ms ease; }
.gallery .animation {
-webkit-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1); }

@media (max-width: 450px) {
.gallery {
-webkit-column-count: 1;
-moz-column-count: 1;
column-count: 1;
-webkit-column-width: 100%;
-moz-column-width: 100%;
column-width: 100%;
}
}

@media (max-width: 400px) {
    .btn.filter {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
    }
}


.lightbox
{
    position: fixed;
    width: 100%;
    height: 100%;
    text-align: center;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.75);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
}
.lightbox img
{
    max-width: 90%;
    max-height: 80%;
    position: relative;
    top: -50%;
    /* Transition */
    transition: all 1s ease;
    -moz-transition: all 1s ease;
    -ms-transition: all 1s ease;
    -o-transition: all 1s ease;
    -webkit-transition: all 1s ease;
}
.lightbox:target
{
    outline: none;
    top: 0;
    opacity: 1;
    pointer-events: auto;
    transition: all 1.2s ease;
    -moz-transition: all 1.2s ease;
    -ms-transition: all 1.2s ease;
    -o-transition: all 1.2s ease;
    -webkit-transition: all 1.2s ease;
}
.lightbox:target img
{
    top: 0;
    top: 20%;
    transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
}

.cke_inner.cke_reset {
    border-left: 1px solid #e7eaec;
    border-right: 1px solid #e7eaec;
}

/* ============================================
   MODERN DESIGN ENHANCEMENTS
   ============================================ */

/* Modern Card Styling */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.card-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #fff;
    border-radius: 8px 8px 0 0 !important;
    padding: 15px 20px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* Modern Small Box (Dashboard Stats) */
.small-box {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.small-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.small-box .inner {
    padding: 20px;
}

.small-box .icon {
    font-size: 70px;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.small-box:hover .icon {
    opacity: 0.4;
    transform: scale(1.1);
}

.small-box-footer {
    padding: 10px 15px;
    background-color: rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.small-box-footer:hover {
    background-color: rgba(0,0,0,0.15);
}

/* Modern Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border: none;
}

/* Modern Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background-color: #f8f9fa;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 12px;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

/* Modern Form Controls */
.form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.15);
    transform: translateY(-1px);
}

/* Content Header */
.content-header {
    margin-bottom: 25px;
}

.content-header h1 {
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 10px;
}

/* Modern User Panel */
.user-panel {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 8px !important;
}

.user-panel .image img {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.user-panel .image img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Modern Navbar */
.main-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
}

.main-header .navbar-nav .nav-link {
    color: #495057;
    transition: all 0.2s ease;
}

.main-header .navbar-nav .nav-link:hover {
    color: #007bff;
}

/* Dashboard Content */
.content {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Badge */
.badge {
    border-radius: 12px;
    padding: 4px 10px;
    font-weight: 500;
}

/* Modern Alert */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Modern Input Groups */
.input-group .form-control {
    border-radius: 6px 0 0 6px;
}

.input-group-append .btn {
    border-radius: 0 6px 6px 0;
}

/* Modern Pagination */
.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Modern Dropdown */
.dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
}

.dropdown-item {
    padding: 8px 20px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    padding-left: 25px;
}

/* Modern Modal */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .content-wrapper {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card {
        margin-bottom: 15px;
    }
    
    .small-box {
        margin-bottom: 15px;
    }
}