/**
 * Mobile Offcanvas Module Styles
 * @package     mod_mobile_offcanvas
 * @copyright   (C) 2025 Your Name. All rights reserved.
 * @license     GNU General Public License version 2 or later
 */

/* Trigger Button Base Styles */
.mobile-offcanvas-trigger {
    position: fixed;
    z-index: 1030;
    border: none;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.mobile-offcanvas-trigger:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.mobile-offcanvas-trigger:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Button Sizes */
.mobile-offcanvas-trigger.size-small {
    width: 40px;
    height: 40px;
    padding: 8px;
}

.mobile-offcanvas-trigger.size-small svg {
    width: 18px;
    height: 18px;
}

.mobile-offcanvas-trigger.size-medium {
    width: 50px;
    height: 50px;
    padding: 10px;
}

.mobile-offcanvas-trigger.size-medium svg {
    width: 24px;
    height: 24px;
}

.mobile-offcanvas-trigger.size-large {
    width: 60px;
    height: 60px;
    padding: 12px;
}

.mobile-offcanvas-trigger.size-large svg {
    width: 30px;
    height: 30px;
}

/* Vertical Positions */
.mobile-offcanvas-trigger.position-top {
    top: 20px;
}

.mobile-offcanvas-trigger.position-bottom {
    bottom: 20px;
}

/* Horizontal Positions */
.mobile-offcanvas-trigger.position-left {
    left: 20px;
}

.mobile-offcanvas-trigger.position-right {
    right: 20px;
}

/* Offcanvas Custom Styles */
.offcanvas {
    --bs-offcanvas-width: 300px;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.offcanvas-title {
    font-weight: 600;
    color: #333;
}

.offcanvas-body {
    padding: 1rem;
}

/* Navigation Styles */
.mobile-offcanvas-nav {
    width: 100%;
}

.mobile-offcanvas-nav .nav {
    --bs-nav-pills-border-radius: 0.375rem;
}

.mobile-offcanvas-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mobile-offcanvas-nav .nav-link:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: #0056b3;
}

.mobile-offcanvas-nav .nav-link.active {
    background-color: #007bff;
    color: #ffffff;
}

.mobile-offcanvas-nav .nav-link.disabled {
    color: #6c757d;
    pointer-events: none;
    background-color: transparent;
}

/* Multi-level Menu Styles */
.mobile-offcanvas-nav .nav.level-2 {
    margin-left: 1rem;
    margin-top: 0.5rem;
}

.mobile-offcanvas-nav .nav.level-2 .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

/* Module Content Styles */
.mobile-offcanvas-module {
    width: 100%;
}

.mobile-offcanvas-module .module {
    margin-bottom: 0;
}

.mobile-offcanvas-module .moduletable {
    margin-bottom: 1rem;
}

.mobile-offcanvas-module .moduletable:last-child {
    margin-bottom: 0;
}

/* Custom Content Styles */
.mobile-offcanvas-custom {
    width: 100%;
}

.mobile-offcanvas-custom h1,
.mobile-offcanvas-custom h2,
.mobile-offcanvas-custom h3,
.mobile-offcanvas-custom h4,
.mobile-offcanvas-custom h5,
.mobile-offcanvas-custom h6 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.mobile-offcanvas-custom p:last-child,
.mobile-offcanvas-custom ul:last-child,
.mobile-offcanvas-custom ol:last-child {
    margin-bottom: 0;
}

/* Alert Messages */
.offcanvas-body .alert {
    margin-bottom: 0;
    border-radius: 0.375rem;
}

/* Responsive adjustments for module content */
@media (max-width: 576px) {
    .mobile-offcanvas-module .btn,
    .mobile-offcanvas-custom .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}
