/* Toast Animations */
@keyframes slideIn { 
    from { transform: translateX(100%); opacity: 0; } 
    to { transform: translateX(0); opacity: 1; } 
}

@keyframes slideOut { 
    from { transform: translateX(0); opacity: 1; } 
    to { transform: translateX(100%); opacity: 0; } 
}

/* Pagination Styles */
.pagination .page-link { 
    cursor: pointer; 
}

.pagination .page-item.disabled .page-link { 
    cursor: not-allowed; 
}

/* Navbar Styles */
.az-navbar {
    position: fixed;
    left: -250px;
    top: 0;
    width: 250px !important;
    min-width: 250px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1050;
    overflow-y: auto;
}

body.az-navbar-show .az-navbar {
    left: 0;
}

.az-navbar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
}

body.az-navbar-show .az-navbar-backdrop {
    display: block;
}

.az-navbar-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    width: 100%;
    box-sizing: border-box;
}

.az-navbar .nav {
    padding: 0;
    list-style: none;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.az-navbar .nav-item {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.az-navbar .nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    background: none;
}

.az-navbar .nav-link:hover {
    background: #f8f9fa;
    color: #5b47fb;
    text-decoration: none;
}

.az-navbar .nav-link.active {
    background: #5b47fb !important;
    color: white !important;
}

.az-navbar .az-menu-sub .nav-link.active {
    background: #5b47fb !important;
    color: white !important;
}

.az-navbar .nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Submenu styles */
.az-navbar .az-menu-sub {
    background: #ffffff;
    padding: 0;
    margin: 0;
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    display: block !important;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
    top:0;
}

.az-navbar .nav-item.show .az-menu-sub {
    max-height: 300px !important;
    border: 1px solid #e9ecef;
    border-top: none;
}

.az-navbar .az-menu-sub li {
    margin: 0;
    border-bottom: none;
    display: block !important;
    width: 100%;
    box-sizing: border-box;
}

.az-navbar .az-menu-sub .nav-link {
    padding: 8px 20px 8px 50px;
    font-size: 14px;
    color: #666;
    display: block !important;
    width: 100%;
    position: relative;
    z-index: 11;
    box-sizing: border-box;
}

.az-navbar .az-menu-sub .nav-link:hover {
    background: #e9ecef;
    color: #5b47fb;
}

.az-navbar .az-menu-sub .nav-link.active {
    background: #5b47fb;
    color: white;
}

/* Chevron rotation for submenu */
.az-navbar .with-sub .fa-chevron-down {
    transition: transform 0.3s ease;
}

.az-navbar .nav-item.show .with-sub .fa-chevron-down {
    transform: rotate(180deg);
}

/* Content margin adjustment */
.az-content {
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

/* Signin wrapper styles */
.az-signin-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.az-card-signin {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    margin: 20px;
}

.az-logo {
    font-size: 2rem;
    font-weight: 700;
    color: #5b47fb;
    text-align: center;
}

.az-logo span {
    color: #667eea;
}

.az-signin-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1c273c;
    margin-bottom: 8px;
    text-align: center;
}

.az-signin-header h4 {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 400;
}

.btn-az-primary {
    background: #5b47fb;
    border-color: #5b47fb;
    color: #fff;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-az-primary:hover {
    background: #4c3ef7;
    border-color: #4c3ef7;
    color: #fff;
}

.az-signin-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 2px;
    border-top: 1px solid #eee;
}

.az-signin-footer p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.az-signin-footer a {
    color: #5b47fb;
    text-decoration: none;
    font-weight: 500;
}

.az-signin-footer a:hover {
    color: #4c3ef7;
    text-decoration: none;
}

/* Responsive Styles */
@media (min-width: 992px) {
    .az-navbar-show .az-content {
        margin-left: 250px;
    }
    .rtl.az-navbar-show .az-content {
        margin-left: 0;
        margin-right: 250px;
    }
}

@media (max-width: 991px) {
    .az-navbar-show .az-content {
        margin-left: 0;
    }
    .rtl.az-navbar-show .az-content {
        margin-right: 0;
    }
}

/* Hamburger menu icon */
.az-header-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    text-decoration: none;
    color: #333;
}

.az-header-menu-icon span {
    position: relative;
    display: block;
    width: 20px;
    height: 2px;
    background: #333;
    transition: all 0.3s;
}

.az-header-menu-icon span:before,
.az-header-menu-icon span:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #333;
    transition: all 0.3s;
}

.az-header-menu-icon span:before {
    top: -6px;
}

.az-header-menu-icon span:after {
    bottom: -6px;
}

/* Header right icons center alignment */
.az-header-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.az-header-right > * {
    display: flex;
    align-items: center;
    justify-content: center;
}