/* Custom styles for Webber */

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    color: white;
}

.navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-brand span {
    display:inline-block;
}

.logo {
    width: 25px;
    height: 25px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 5px;
    margin-right: 5px;
}

/* Navigation active state styles */
.navbar-nav .nav-link.active {
    color: white !important;
    font-weight: 600;
}

.navbar-nav .nav-link.active:hover {
    color: white !important;
}

.navbar-nav .nav-link {
    transition: all 0.3s ease;
    margin: 0 2px;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* GNB Add Bookmark button styles */
.navbar-nav .btn-primary {
    background: rgba(13, 110, 253, 0.9);
    border: 1px solid rgba(13, 110, 253, 0.7);
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.875rem;
}

.navbar-nav .btn-primary:hover {
    background: rgba(13, 110, 253, 1);
    border-color: rgba(13, 110, 253, 0.9);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.navbar-nav .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 65px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-bottom-nav__item {
    flex: 1;
    text-align: center;
}

.mobile-bottom-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    padding: 8px 4px;
    border-radius: 8px;
    min-height: 50px;
}

.mobile-bottom-nav__link:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.mobile-bottom-nav__link--active {
    color: rgba(255, 255, 255, 0.9);
}

.mobile-bottom-nav__icon {
    font-size: 1.2rem;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.mobile-bottom-nav__icon--plus {
    font-size: 1.4rem;
    font-weight: bold;
}

.mobile-bottom-nav__label {
    padding-top:0.25em;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1;
}

/* Adjust main content for mobile bottom nav */
@media (max-width: 767.98px) {
    .main-content {
        margin-bottom: 80px;
    }
    
    .footer {
        margin-bottom: 80px;
    }
    
    /* Mobile bookmark detail improvements */
    .bookmark-actions {
        display: none !important;
    }
    
    .card-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .card-header h5 {
        margin-bottom: 0.5rem;
    }
    
    /* Mobile action buttons in footer */
    .card-footer.d-md-none {
        background: rgba(255, 255, 255, 0.05);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem;
    }
    
    .card-footer.d-md-none .btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Group list dropdown fixes */
    .card {
        position: relative;
        z-index: 1;
        overflow: visible !important;
    }
    
    .card:hover {
        z-index: 2;
    }
    
    .dropdown {
        position: relative;
        z-index: 9999;
    }
    
    .card-body {
        overflow: visible !important;
    }
    
    /* Container overflow fixes */
    .container {
        overflow: visible !important;
    }
    
    .row {
        overflow: visible !important;
    }
    
    .col-md-6, .col-lg-4 {
        overflow: visible !important;
    }
    
    .dropdown-menu {
        z-index: 9999 !important;
        position: absolute !important;
        margin-top: 0.125rem !important;
        min-width: 10rem !important;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    }
    
    .dropdown-menu-end {
        right: 0 !important;
        left: auto !important;
    }
    
    /* Group and Bookmark card header styling */
    .card-header {
        background: rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.75rem 1rem;
    }
    
    .card-header .card-title {
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .card-header .card-title a {
        color: inherit;
        text-decoration: none;
    }
    
    .card-header .card-title a:hover {
        color: rgba(255, 255, 255, 0.8);
    }
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-primary {
    background: rgba(13, 110, 253, 0.8);
    border: 1px solid rgba(13, 110, 253, 0.5);
}

.btn-primary:hover {
    background: rgba(13, 110, 253, 1);
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(13, 110, 253, 0.5);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.main-content {
    margin-top: 100px;
    min-height: calc(100vh - 200px);
}

.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0;
    margin-top: 50px;
}

/* Card title link styles */
.card-title a {
    color: white;
    text-decoration: none;
}

.card-title a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

/* Badge styles */
.badge {
    font-size: 0.75em;
}

/* Pagination styles */
.pagination .page-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.pagination .page-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.pagination .page-item.active .page-link {
    background: rgba(13, 110, 253, 0.8);
    border-color: rgba(13, 110, 253, 0.5);
}

/* Dropdown styles */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1050;
}

.dropdown-item {
    color: rgb(86, 86, 86);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.6);
    color: rgb(86, 86, 86);
}

/* Alert styles */
.alert {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

/* Text colors */
.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-light {
    color: white !important;
}

/* Form select styles */
.form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.form-select:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(13, 110, 253, 0.5);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Button outline styles */
.btn-outline-primary {
    color: rgba(13, 110, 253, 0.8);
    border-color: rgba(13, 110, 253, 0.5);
    background-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-primary:hover {
    background: rgba(13, 110, 253, 0.8);
    border-color: rgba(13, 110, 253, 0.5);
    color: white;
}

.btn-outline-secondary {
    color: rgba(44, 44, 44, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-danger {
    color: rgba(220, 53, 69, 0.8);
    border-color: rgba(220, 53, 69, 0.5);
    background-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-danger:hover {
    background: rgba(220, 53, 69, 0.8);
    border-color: rgba(220, 53, 69, 0.5);
    color: white;
}

/* Loading overlay styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 15px;
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 10px;
}

.loading-subtext {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

/* Like button active state styles */
.btn.active {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    transform: scale(1.05);
    transition: all 0.2s ease-in-out;
}

.btn-danger.active {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}