/* Custom styles for DIYCC - Future Tech Theme */

/* CSS Variables */
:root {
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --secondary: #0066cc;
    --secondary-dark: #004488;
    --accent: #ff6b35;
    --accent-dark: #cc5522;
    --bg-dark: #050815;
    --bg-darker: #020610;
    --bg-light: #f0f4ff;
    --card-bg: #ffffff;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0b0;
    --text-muted: rgba(192, 192, 192, 0.7);
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0066cc 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b35 0%, #ff9f43 100%);
    --gradient-dark: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    --gradient-header: linear-gradient(135deg, #050815 0%, #0a0e27 50%, #004488 100%);
}

/* Body */
body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Animated Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
    box-shadow: inset 0 0 100px rgba(0, 212, 255, 0.3);
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
    }
}

/* Floating Particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 212, 255, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(255, 107, 53, 0.12) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(0, 102, 204, 0.1) 0%, transparent 30%);
    pointer-events: none;
    z-index: 0;
    animation: particleFloat 15s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        opacity: 0.6;
        transform: translate(0, 0);
    }
    50% {
        opacity: 1;
        transform: translate(10px, -10px);
    }
}

/* Main content */
main {
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Navbar */
.navbar {
    background: var(--gradient-header) !important;
    border-bottom: 2px solid transparent;
    box-shadow: 0 4px 30px rgba(0, 212, 255, 0.4);
    position: relative;
    padding: 0.8rem 0;
    z-index: 50;
}

.navbar::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    background-size: 200% 100%;
    animation: neonGlow 3s linear infinite;
}

@keyframes neonGlow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: textShimmer 3s linear infinite;
}

@keyframes textShimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.navbar-logo {
    height: 50px;
    width: auto;
    transition: all 0.4s ease;
}

.navbar-logo:hover {
    transform: scale(1.1);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.6rem 1.2rem !important;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

.nav-link:hover {
    color: var(--primary) !important;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
    transform: translateY(-3px);
}

.nav-link:hover::before {
    width: 100%;
}

/* Cards with Holographic Effect */
.card {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 212, 255, 0.1);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.6) 0%, rgba(5, 10, 35, 0.4) 100%);
    backdrop-filter: blur(15px);
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.4);
    clip-path: polygon(
        0 0,
        calc(100% - 15px) 0,
        100% 15px,
        100% calc(100% - 15px),
        calc(100% - 15px) 100%,
        15px 100%,
        0 calc(100% - 15px)
    );
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    background-size: 200% 100%;
    animation: cardGlow 3s linear infinite;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes cardGlow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.card:hover {
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.6), 0 0 100px rgba(255, 107, 53, 0.3), 0 0 40px rgba(0, 212, 255, 0.2);
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.7) 0%, rgba(5, 10, 35, 0.5) 100%);
}

.card-header {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.3) 0%, rgba(0, 102, 204, 0.2) 50%, rgba(255, 107, 53, 0.15) 100%);
    border-bottom: 1px solid rgba(0, 212, 255, 0.5);
    font-weight: 700;
    padding: 1.2rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-size: 0.9rem;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3), 0 0 40px rgba(0, 212, 255, 0.1);
}

.card-header::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.4));
}

.card-body {
    color: #d0d0e0;
}

.card-text {
    color: #a0a0b0;
}

/* Buttons with Neon Effect */
.btn-primary {
    background: var(--gradient-primary) !important;
    border: 2px solid rgba(0, 212, 255, 0.6);
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(0, 212, 255, 0.8), 0 0 60px rgba(255, 107, 53, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.25);
    background-size: 300% 100% !important;
    animation: buttonPulse 1.5s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 102, 204, 0.15) 100%) !important;
    border: 2px solid rgba(0, 212, 255, 0.5);
    color: var(--primary) !important;
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px));
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(0, 102, 204, 0.35) 100%) !important;
    border-color: var(--primary) !important;
    transform: translateY(-5px);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.7), 0 0 80px rgba(255, 107, 53, 0.3);
}

.btn-outline-primary {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 102, 204, 0.1) 100%) !important;
    border: 2px solid rgba(0, 212, 255, 0.6);
    color: var(--primary) !important;
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px));
    position: relative;
    backdrop-filter: blur(5px);
}

.btn-outline-primary::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid var(--primary);
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px));
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.4s ease;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary) !important;
    color: white !important;
    transform: translateY(-5px);
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.9), inset 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Search Button */
.btn-search {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 102, 204, 0.3) 100%) !important;
    border: 2px solid rgba(0, 212, 255, 0.6);
    color: #00d4ff !important;
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px));
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-search:hover::before {
    left: 100%;
}

.btn-search:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.4) 0%, rgba(0, 102, 204, 0.5) 100%) !important;
    border-color: rgba(0, 212, 255, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.7), inset 0 0 25px rgba(0, 212, 255, 0.2);
}

/* Button Icons */
.btn i,
.btn-search i,
.btn-outline-primary i,
.btn-secondary i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Avatar - Image */
.avatar-small,
.avatar-medium,
.avatar-large {
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.8), 0 0 50px rgba(255, 107, 53, 0.3);
}

.avatar-small { width: 40px; height: 40px; }
.avatar-medium { width: 80px; height: 80px; }
.avatar-large { width: 150px; height: 150px; }

/* Avatar - Icon styles with Glow */
.avatar-icon-small {
    width: 40px;
    height: 40px;
    font-size: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    line-height: 1;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8), 0 0 40px rgba(255, 107, 53, 0.4);
    animation: avatarGlow 3s ease-in-out infinite;
}

.avatar-icon-medium {
    width: 80px;
    height: 80px;
    font-size: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    line-height: 1;
    border: 4px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.9), 0 0 60px rgba(255, 107, 53, 0.5);
    animation: avatarGlow 3s ease-in-out infinite;
}

.avatar-icon-large {
    width: 150px;
    height: 150px;
    font-size: 110px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    line-height: 1;
    border: 5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 40px rgba(0, 212, 255, 1), 0 0 80px rgba(255, 107, 53, 0.6);
    animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 1), 0 0 80px rgba(255, 107, 53, 0.6);
    }
    50% {
        box-shadow: 0 0 60px rgba(0, 212, 255, 1.2), 0 0 120px rgba(255, 107, 53, 0.9);
    }
}

/* Thread item with Future Style */
.thread-item {
    padding: 1.5rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.4s ease;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
}

.thread-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.thread-item:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 102, 204, 0.1) 100%);
    transform: translateX(12px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
    border-color: var(--primary);
}

.thread-item:hover::before {
    transform: scaleY(1);
}

.thread-item h6,
.thread-item h5,
.thread-item h4 {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.thread-item small,
.thread-item .text-muted {
    color: rgba(192, 192, 192, 0.6) !important;
}

/* Material offer */
.material-offer {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    margin: 1rem 0;
    padding: 1.2rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    position: relative;
}

.material-offer h6 {
    color: var(--primary);
}

/* Status badge with Neon Effect */
.status-badge {
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--gradient-primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
    }
}

/* Like button */
.like-button {
    cursor: pointer;
    transition: all 0.4s ease;
}

.like-button.liked {
    color: var(--accent);
    text-shadow: 0 0 25px rgba(255, 107, 53, 0.8);
}

/* Payment code */
.payment-code {
    max-width: 300px;
    height: auto;
    border: 3px solid var(--primary);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.8);
}

/* Liked by list */
.liked-by-item {
    padding: 1rem 1.5rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.4s ease;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    position: relative;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px));
}

.liked-by-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.liked-by-item:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 102, 204, 0.1) 100%);
    transform: translateX(12px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
    border-color: var(--primary);
}

.liked-by-item:hover::before {
    transform: scaleY(1);
}

.liked-by-item:last-child {
    border-bottom: none;
}

/* Form controls with Tech Style */
.form-control,
.form-select {
    border: 2px solid rgba(0, 212, 255, 0.5);
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px));
    padding: 0.8rem;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, rgba(5, 10, 35, 0.7) 0%, rgba(10, 15, 40, 0.6) 100%);
    backdrop-filter: blur(10px);
    color: #e0e0e0;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2), inset 0 0 10px rgba(0, 212, 255, 0.1);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.8), 0 0 60px rgba(255, 107, 53, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.12) 100%);
    color: #ffffff;
    outline: none;
}

.form-control::placeholder,
.form-select::placeholder {
    color: rgba(192, 192, 192, 0.6);
}

/* Option element styling - matches form-control */
option {
    color: #171717;
}

/* Option styling - browser support varies */
.form-select option {
    background: rgba(5, 10, 35, 0.98);
    color: #ffffff;
    padding: 0.8rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.form-select option:hover {
    background: rgba(0, 212, 255, 0.3);
}

.form-select option:checked {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.5) 0%, rgba(0, 102, 204, 0.5) 100%);
    color: var(--primary);
    font-weight: 600;
}

.form-label {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Badges with Gradient */
.badge {
    padding: 0.5rem 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--gradient-primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.badge-success {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%) !important;
    box-shadow: 0 0 15px rgba(0, 184, 148, 0.5);
}

.badge-danger {
    background: linear-gradient(135deg, #d63031 0%, #e17055 100%) !important;
    box-shadow: 0 0 15px rgba(214, 48, 49, 0.5);
}

.badge-warning {
    background: var(--gradient-accent) !important;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

/* Thread Type Badges */
.badge-type-request {
    background: linear-gradient(135deg, #00d4ff 0%, #0066cc 100%) !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    font-size: 0.75rem;
    padding: 0.4rem 0.9rem;
    clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px),
                 calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px));
}

.badge-type-discussion {
    background: linear-gradient(135deg, #a855f7 0%, #6c5ce7 100%) !important;
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.5);
    font-size: 0.75rem;
    padding: 0.4rem 0.9rem;
    clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px),
                 calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px));
}

/* Category Badge */
.badge-category {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 102, 204, 0.2) 100%) !important;
    border: 1px solid rgba(0, 212, 255, 0.5);
    color: #00d4ff !important;
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(5px);
    margin-left: 0.5rem;
}

/* List groups */
.list-group-item {
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.4s ease;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    color: #c0c0d0;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px));
}

.list-group-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.list-group-item:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 102, 204, 0.1) 100%);
    transform: translateX(12px);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.list-group-item:hover::before {
    transform: scaleY(1);
}

.list-group-item small,
.list-group-item .text-muted {
    color: rgba(192, 192, 192, 0.6) !important;
}

/* Links */
a {
    color: var(--primary);
    transition: all 0.4s ease;
    font-weight: 500;
    text-decoration: none;
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.4s ease;
}

a:hover {
    color: var(--primary-dark);
}

a:hover::after {
    width: 100%;
}

/* Footer with Futuristic Design */
footer {
    background: var(--gradient-header) !important;
    border-top: 2px solid transparent;
    box-shadow: 0 -4px 30px rgba(0, 212, 255, 0.4);
    padding: 2rem 0;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    background-size: 200% 100%;
    animation: neonGlow 3s linear infinite;
}

footer p {
    margin: 0;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Avatar option cards */
.avatar-option-card .card {
    border: 2px solid rgba(0, 212, 255, 0.3);
    transition: all 0.4s ease;
}

.avatar-option-card .card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.6);
}

.avatar-option-card input:checked + .card {
    border: 3px solid var(--primary);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 102, 204, 0.15) 100%);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.8);
    transform: scale(1.08);
}

/* Alerts with Neon Borders */
.alert {
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
    font-weight: 600;
    padding: 1.2rem 1.8rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(10px);
    color: #e0e0e0;
    border: 2px solid;
    animation: alertGlow 2s ease-in-out infinite;
}

@keyframes alertGlow {
    0%, 100% {
        box-shadow: 0 0 20px currentColor;
    }
    50% {
        box-shadow: 0 0 30px currentColor;
    }
}

.alert-info {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.alert-success {
    border-color: rgba(0, 184, 148, 0.6);
    box-shadow: 0 0 30px rgba(0, 184, 148, 0.4);
}

.alert-danger {
    border-color: rgba(214, 48, 49, 0.6);
    box-shadow: 0 0 30px rgba(214, 48, 49, 0.4);
}

.alert-warning {
    border-color: rgba(255, 107, 53, 0.6);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.4);
}

/* Dropdown menus */
.dropdown-menu {
    border: 1px solid rgba(0, 212, 255, 0.5);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.2), inset 0 0 20px rgba(0, 212, 255, 0.1);
    padding: 0.5rem 0;
    background: linear-gradient(135deg, rgba(5, 10, 35, 0.95) 0%, rgba(10, 15, 40, 0.98) 100%);
    backdrop-filter: blur(20px);
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px));
}

.dropdown-item {
    transition: all 0.4s ease;
    padding: 0.8rem 1.8rem;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 3px solid transparent;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.3) 0%, rgba(0, 102, 204, 0.2) 100%);
    color: var(--primary) !important;
    border-left: 3px solid var(--primary);
    transform: translateX(8px);
}

/* Input groups */
.input-group-text {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Pagination */
.page-link {
    color: var(--secondary);
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.4s ease;
    font-weight: 700;
    margin: 0 0.3rem;
    padding: 0.6rem 1.2rem;
    clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px));
}

.page-link:hover {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(0, 212, 255, 1);
    animation: activePulse 2s ease-in-out infinite;
}

@keyframes activePulse {
    0%, 100% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 1);
    }
    50% {
        box-shadow: 0 0 60px rgba(0, 212, 255, 1.4);
    }
}

/* Hexagon section divider with Animation */
.hexagon-divider {
    height: 4px;
    background: var(--gradient-primary);
    margin: 2rem 0;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.hexagon-divider::before,
.hexagon-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}

.hexagon-divider::before {
    left: -20px;
    animation: hexRotate 10s linear infinite;
}

.hexagon-divider::after {
    right: -20px;
    animation: hexRotate 10s linear infinite reverse;
}

@keyframes hexRotate {
    from {
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Stats card enhancement */
.card .card-body .card-title {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.card .card-body .card-text {
    color: #a0a0b0;
}

.card .card-body h3 {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card .card-body p {
    color: #c0c0d0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .navbar-logo {
        height: 40px;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .card {
        margin-bottom: 1rem;
    }
}

/* Additional dark theme utilities */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: var(--primary);
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-dark {
    background: var(--gradient-dark) !important;
    color: #e0e0e0;
}

.btn-light {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    color: var(--primary) !important;
    border: 1px solid rgba(0, 212, 255, 0.4);
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px));
}

.btn-light:hover {
    background: var(--gradient-primary) !important;
    color: white !important;
}

/* Danger Button - Delete/Cancel operations */
.btn-danger {
    background: var(--gradient-accent) !important;
    border: 2px solid rgba(255, 107, 53, 0.6);
    color: white !important;
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.5), 0 0 40px rgba(255, 107, 53, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-danger:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(255, 107, 53, 0.8), 0 0 60px rgba(255, 107, 53, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.25);
}

/* Success Button - Confirm/Complete operations */
.btn-success {
    background: linear-gradient(135deg, #00d4ff 0%, #00ccaa 100%) !important;
    border: 2px solid rgba(0, 204, 170, 0.6);
    color: white !important;
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 204, 170, 0.5), 0 0 40px rgba(0, 204, 170, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-success:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(0, 204, 170, 0.8), 0 0 60px rgba(0, 204, 170, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.25);
}

/* Warning Button */
.btn-warning {
    background: linear-gradient(135deg, #ffcc00 0%, #ff9900 100%) !important;
    border: 2px solid rgba(255, 204, 0, 0.6);
    color: #0a0e27 !important;
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(255, 204, 0, 0.5), 0 0 40px rgba(255, 204, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-warning:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(255, 204, 0, 0.8), 0 0 60px rgba(255, 204, 0, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.25);
}

/* Info Button */
.btn-info {
    background: var(--gradient-primary) !important;
    border: 2px solid rgba(0, 212, 255, 0.6);
    color: white !important;
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(0, 212, 255, 0.8), 0 0 60px rgba(0, 212, 255, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.25);
}

/* Dark Button */
.btn-dark {
    background: var(--gradient-dark) !important;
    border: 2px solid rgba(0, 102, 204, 0.5);
    color: var(--primary) !important;
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 102, 204, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-dark:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.8), 0 0 60px rgba(0, 102, 204, 0.5), inset 0 0 30px rgba(0, 212, 255, 0.25);
}

/* Small Button Size */
.btn-sm {
    padding: 0.4rem 1.2rem;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.btn-sm:hover {
    transform: translateY(-3px);
}

/* Large Button Size */
.btn-lg {
    padding: 1rem 3rem;
    font-size: 1.125rem;
    letter-spacing: 2.5px;
}

/* Outline Button Generic Style */
.btn-outline {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 102, 204, 0.1) 100%) !important;
    border: 2px solid rgba(0, 212, 255, 0.6);
    color: var(--primary) !important;
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px));
    position: relative;
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: var(--gradient-primary) !important;
    color: white !important;
    transform: translateY(-5px);
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.9), inset 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Outline Button Variations */
.btn-outline-danger {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(204, 85, 34, 0.1) 100%) !important;
    border: 2px solid rgba(255, 107, 53, 0.6);
    color: #ff6b35 !important;
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px));
    position: relative;
    backdrop-filter: blur(5px);
}

.btn-outline-danger:hover {
    background: var(--gradient-accent) !important;
    color: white !important;
    transform: translateY(-5px);
    box-shadow: 0 0 60px rgba(255, 107, 53, 0.9), inset 0 0 30px rgba(255, 255, 255, 0.3);
}

.btn-outline-success {
    background: linear-gradient(135deg, rgba(0, 204, 170, 0.05) 0%, rgba(0, 170, 136, 0.1) 100%) !important;
    border: 2px solid rgba(0, 204, 170, 0.6);
    color: #00ccaa !important;
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px);
    position: relative;
    backdrop-filter: blur(5px);
}

.btn-outline-success:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #00ccaa 100%) !important;
    color: white !important;
    transform: translateY(-5px);
    box-shadow: 0 0 60px rgba(0, 204, 170, 0.9), inset 0 0 30px rgba(255, 255, 255, 0.3);
}

.btn-outline-secondary {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 68, 136, 0.1) 100%) !important;
    border: 2px solid rgba(0, 102, 204, 0.6);
    color: var(--secondary) !important;
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px);
    position: relative;
    backdrop-filter: blur(5px);
}

.btn-outline-secondary:hover {
    background: linear-gradient(135deg, #0099cc 0%, #004488 100%) !important;
    color: white !important;
    transform: translateY(-5px);
    box-shadow: 0 0 60px rgba(0, 102, 204, 0.9), inset 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Button Group */
.btn-group > .btn:not(:first-child) {
    margin-left: -2px;
}

.btn-group .btn {
    border-radius: 0 !important;
}

.btn-group .btn:first-child {
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), 12px 100%, 0 calc(100% - 12px)) !important;
}

.btn-group .btn:last-child {
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 calc(100% - 12px)) !important;
}

.btn-group .btn:only-child {
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px)) !important;
}

/* Full-width Button */
.btn-block {
    width: 100%;
    display: block;
}

/* Table styles */
.table {
    color: #e0e0e0;
}

.table > thead th {
    background: var(--gradient-primary);
    color: white;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table tbody tr {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    transform: translateX(5px);
}

/* Glowing text effect */
.glow-text {
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8), 0 0 20px rgba(0, 212, 255, 0.5);
}
