/* Material Icons Styling */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-flex;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}

/* Custom Font Families */
.BnDTitleMessageFont {
    font-family: 'VT323', monospace;
    font-weight: 400;
}

.BnDTitleMessageFontExtra {
    font-family: 'VT323', monospace;
    font-weight: 400;
    font-size: 1.7em;
}

.BnDLogoFont {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.BnDStdFont {
    font-family: 'Pangolin', cursive;
    font-weight: 400;
}

:root {
    --primary: #000000;
    --primary-dark: #1a1a1a;
    --accent: #333333;
    --light: #f5f5f5;
    --dark: #000000;
    --breadcrumb-color: #666666;
    --button-bg: #000000;
    --button-fg: #ffffff;
    --input-bg: #3a3a3a;
    --input-fg: #ffffff;
    --input-border: #555555;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pangolin', cursive;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    color: var(--dark);
    min-height: 100vh;
}

/* Material AppBar */
.mui-appbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1100;
}

.appbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.appbar-title {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.appbar-title img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
    background-color: white;
}

.appbar-nav {
    display: flex;
    gap: 0;
    flex: 1;
    margin-left: 2rem;
}

.appbar-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 44px;
}

.appbar-nav a .material-icons {
    font-size: 22px;
    vertical-align: middle;
}

.appbar-nav a:hover {
    background: rgba(255,255,255,0.1);
}

/* Hamburger Menu Button */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 0;
    margin: 0;
}

.hamburger-btn .material-icons {
    font-size: 28px;
}

.hamburger-btn:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    transition: background 0.2s;
}

.mobile-menu a:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-menu a .material-icons {
    font-size: 24px;
}

.appbar-actions {
    display: flex;
    gap: 0.5rem;
}

.appbar-logout {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
}

.appbar-logout .material-icons {
    font-size: 22px;
}

.appbar-logout:hover {
    background: rgba(255,255,255,0.15);
}

/* Mobile Responsive Breakpoint */
@media (max-width: 768px) {
    .appbar-content {
        height: auto;
        padding: 0.5rem 1rem;
    }
    
    .appbar-title {
        flex: 1;
    }
    
    .appbar-title span {
        display: none;
    }
    
    .appbar-nav {
        display: none;
        margin-left: 0;
        flex: 1;
    }
    
    .hamburger-btn {
        display: block;
    }
    
    h2 {
        font-size: clamp(1.25rem, 3.5vw, 1.5rem);
        padding: 0 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .mobile-menu {
        top: 48px;
    }
    
    .appbar-actions {
        order: 3;
    }
}

/* Breadcrumbs */
.breadcrumbs-wrapper {
    background: #ffffff;
    border-bottom: 1px solid #cccccc;
    padding: 0.75rem 0;
    position: sticky;
    top: 64px;
    z-index: 1099;
}

.breadcrumbs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.mui-breadcrumbs {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: #000000;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--breadcrumb-color);
    margin: 0 0.25rem;
}

.breadcrumb-current {
    color: var(--breadcrumb-color);
    font-weight: 500;
}

.backndayz-logo-banner{
    width: 250px !important;
    height: 30px;
    margin-bottom: 15px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.container-left {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.container > * {
    width: 100%;
}

h1, h2, h3 {
    color: var(--dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.add-memory-icon {
    position: absolute;
    top: -10px;
    right: 0;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.memory-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
    position: relative;
}

.memory-card-bnd {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.memory-card img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    filter: grayscale(10%);
    display: block;
}

.memory-card-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    filter: grayscale(10%);
    display: block;
    border-radius: 8px;
    margin: 10px 10px 1px 10px;
    max-width: calc(100% - 20px);
    border: black 1px solid;
    cursor: pointer;
    transition: opacity 0.2s ease;
    background: radial-gradient(circle,rgba(255, 255, 255, 1) 8%, rgba(188, 196, 192, 1) 50%, rgba(255, 255, 255, 1) 92%);
}

.memory-card-img:hover {
    opacity: 0.9;
}

.memory-card-overlay {
    position: absolute;
    top: 10px;
    left: 40px;
    right: 10px;
    background: #ded7d7;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    height: 30px;
    border-radius: 11px;
    border: 1px solid black;
    box-shadow: inset 2px 2px rgba(0,0,0,0.3);
}

.profile-item-separator {
    margin-bottom: 1.5rem;
}

.overlay-profile-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.overlay-profile-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
    margin-left: 5px;
    border-radius: 50%;
    position: absolute;
    left: -45px;
}

.overlay-profile-image:hover {
    transform: scale(1.1);
}

.overlay-author {
    color: black;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.overlay-author-name {
    flex: 0 1 auto;
    min-width: 0;
}

.overlay-author-location {
    white-space: nowrap;
    color:black;
    opacity: 0.9;
    margin-left: auto;
    margin-right: 0.75rem;
}

.memory-card-actions {
    position: absolute;
    bottom: 47px;
    right: 11px;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.50rem 0.50rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    color: white;
    border-radius: 20%;
}

.memory-card-actions-my {
    position: absolute;
    bottom: 75px;
    right: 15px;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.50rem 0.50rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    color: white;
    border-radius: 20%;
}

.memory-action-item {
    color: white;
    /*font-size: 1.2rem;*/
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}

.memory-action-item-active {
    color: #ff4757;
}

.memory-action-item-selected {
    color: white;
}

.memory-card-content {
    background: #ded7d7;
    border-radius: 11px;
    margin: -1px 10px 0 10px;
    color: white;
    border: 1px solid black;
    box-shadow: inset 2px 2px rgba(0,0,0,0.3);
}

.memory-card-content p{
    color: black;
}

button {
    background: var(--button-bg);
    color: var(--button-fg);
    border: 1px solid #000000;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 0.5rem;
    transition: all 0.2s;
}

button:hover {
    background: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
    text-align: left;
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    font-family: inherit;
    background-color: var(--input-bg);
    color: var(--input-fg);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.loading {
    text-align: center;
    padding: 2rem;
}

/* Splash Screen Animation */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease-out;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-container {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    animation: none;
}

.splash-logo.animate-splash {
    animation: splash-expand 3s ease-in-out forwards;
}

@keyframes splash-expand {
    0% {
        width: 150px;
        height: 150px;
        opacity: 1;
        transform: scale(1);
    }
    50% {
        width: 150px;
        height: 150px;
        opacity: 1;
        transform: scale(1);
    }
    100% {
        width: 200vmax;
        height: 200vmax;
        opacity: 0;
        transform: scale(1);
    }
}

/* LogoEffect - Text with shadow effect */
.LogoEffect {
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.2),
        2px 2px 4px rgba(0, 0, 0, 0.08);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Button Styles */
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    padding: 0.75rem 1.5rem;
    background: var(--button-bg);
    color: var(--button-fg);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

button:active,
input[type="submit"]:active,
input[type="button"]:active,
input[type="reset"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Full-width button */
.btn-full {
    width: 100%;
    padding: 0.50rem;
}

/* Button group */
.btn-group {
    display: flex;
    gap: 1rem;
}

.btn-group button,
.btn-group input[type="submit"],
.btn-group input[type="button"],
.btn-group input[type="reset"] {
    flex: 1;
}

.edit-button-circle {
    position: absolute;
    right: 12px;
    bottom: -15px;
    background: #d3d3d3;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
}
.edit-button-circle:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color:white;
}
.action-button-circle {
    background: #d3d3d3;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
}

.action-button-circle.save {
    background: #4CAF50;
    color: white;
}

.action-button-circle.cancel {
    background: #666;
    color: white;
}
/* Statistics Section */
.stat-container {
    text-align: left;
}

.stat-container-wide {
    display: block;
}

.stat-container-wide .stat-item {
    margin-bottom: 0.5rem;
}

.stat-item {
    display: inline-block;
    vertical-align: top;
    text-align: center;
    min-width: 50px;
    margin-right: 0.5rem;
    margin-bottom: 1rem;
}

.stat-label {
    font-size: 15px;
    color: #666666;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 15px;
    font-weight: 600;
    background: #000000;
    color: white;
    padding: 2px;
    border-radius: 4px;
    display: inline-block;
    min-width: 50px;
    margin-top: 15px;
}

.stat-value-backstreak {
    font-size: 15px;
    font-weight: 600;
    background: #000000;
    color: white;
    padding: 2px;
    border-radius: 4px;
    display: inline;
    min-width: 50px;
}

.profile-editable-pane {
    position: relative;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 1rem 1rem 1rem 1rem;
    text-align: center;
}

/* Friend List Styles */
.card-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.card-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.friends-editable-pane {
    position: relative;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 1rem 1rem 1rem 1rem;
    text-align: center;
}


.list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.list-item-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.list-item-link:hover {
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.list-item-pending {
    background-color: #fffbf0;
}

.list-item-content {
    flex: 1;
}

.list-item-name {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.list-item-fullname {
    margin: 0 0 0.25rem 0;
    color: #666666;
    font-size: 0.9rem;
}

.list-item-alias {
    margin: 0;
    color: #999999;
    font-size: 1rem;
    font-style: italic;
    text-align: left;
}

.list-item-profile-image {
    width: 48px; 
    height: 48px; 
    border-radius: 15%; 
    object-fit: cover; 
    flex-shrink: 0;
}
.list-item-profile-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 15%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}


.list-item-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-small:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.btn-approve {
    background-color: #4CAF50;
    color: white;
}

.btn-reject {
    background-color: #f44336;
    color: white;
}

.status-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.2rem 0.2rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    position: absolute;
    top: -20px;
    right: 0px;
}

.empty-message {
    text-align: center;
    color: #999999;
    padding: 2rem 0;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: whitesmoke;
    border: 1px solid rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.25rem 0;
    z-index: 100;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 50px 50px 50px 50px;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: black;
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    flex: 1;
    transition: background-color 0.2s ease;
    gap: 0.125rem;
}

.mobile-bottom-nav .nav-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.25rem;
}

.mobile-bottom-nav .nav-item span {
    font-size: 0.65rem;
    text-align: center;
}

/* Adjust body padding when mobile bottom nav is visible */
@media (max-width: 767px) {
    body {
        padding-bottom: 60px;
    }
    
    h2 {
        font-size: clamp(1rem, 4vw, 1.25rem);
        padding: 0 0.25rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }
}

/* Material UI Image Modal Dialog */
.image-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.image-modal-backdrop.active {
    display: flex;
}

.image-modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: zoomIn 0.3s ease;
}

.image-modal-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #000;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

.image-modal-close:hover {
    background: #fff;
    transform: scale(1.1);
}

.image-modal-close:active {
    transform: scale(0.95);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 767px) {
    .image-modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Backstreak Page Styles */
.backstreak-container {
    max-width: 900px;
}

.backstreak-header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.backstreak-header h1 {
    margin: 0;
}

.backstreak-intro {
    margin-bottom: 1.5rem;
    color: #666;
}

.backstreak-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.backstreak-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    align-items: center;
    padding: 1rem 0.5rem;
    background-color: #f5f5f5;
    border-radius: 0.5rem;
}

.backstreak-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.backstreak-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.backstreak-description {
    text-align: left;
}

.backstreak-description p {
    margin: 0;
    color: #333;
    font-size: 1rem;
    line-height: 1.4;
}

.backstreak-days-wrapper {
    display: flex;
    justify-content: flex-end;
}

.backstreak-days-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #fff;
    border: 2px solid #404040;
    border-radius: 1.5rem;
    font-weight: 600;
    font-size: 9px;
    color: #404040;
    min-width: 40px;
    text-align: center;
}

.backstreak-empty {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.backstreak-tips-card {
    margin-top: 1.5rem;
}

.backstreak-tips-list {
    margin: 0;
    padding-left: 1.5rem;
    line-height: 1.8;
    color: #666;
}

.backstreak-restricted-container {
    max-width: 600px;
    text-align: center;
    margin-top: 4rem;
}

.backstreak-restricted-link {
    text-decoration: none;
}

/* Add Friend Page Styles */
.addfriend-container {
    max-width: 900px;
}

.addfriend-title-block {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.addfriend-title-link {
    text-decoration: none;
}

.addfriend-title-heading {
    margin: 0;
}

.addfriend-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.addfriend-card-large {
    margin-bottom: 2rem;
}

.addfriend-pending-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.0rem;
    color: #333;
}

.addfriend-pending-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.addfriend-pending-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f5f5f5;
    border-radius: 0.5rem;
}

.addfriend-pending-username {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.addfriend-pending-fullname {
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
    color: #666;
}

.addfriend-pending-alias {
    margin: 0.25rem 0 0 0;
    font-size: 1rem;
    color: #999;
    font-style: italic;
}

.addfriend-pending-actions {
    display: flex;
    gap: 0.5rem;
}

.addfriend-pending-form {
    display: inline;
}

.addfriend-pending-button {
    background-color: #404040;
    color: white;
    border: none;
    padding: 0.5rem 0.5rem;
    border-radius: 0.35rem;
    cursor: pointer;
    font-size: 1rem;
    margin: 0px;
}

.addfriend-form-group {
    margin-bottom: 20px;
}

.addfriend-form-label {
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
    color: #333333;
    text-align: center;
}

.addfriend-search-wrapper {
    position: relative;
    width: 100%;
}

.addfriend-search-input {
    width: 100%;
}

.addfriend-search-button {
    position: absolute;
    right: 6px;
    top: 40px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.addfriend-success-message {
    background: #d4edda;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.addfriend-error-message {
    background: #f8d7da;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.addfriend-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.addfriend-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    position: relative;
    text-align: left;
}

.addfriend-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    text-decoration: none;
}

.addfriend-user-image {
    width: 48px;
    height: 48px;
    border-radius: 15%;
    object-fit: cover;
}

.addfriend-user-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 15%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.addfriend-user-placeholder-icon {
    color: #999;
}

.addfriend-user-username {
    font-weight: 600;
    font-size: 1rem;
}

.addfriend-user-fullname {
    color: #666;
    font-size: 0.875rem;
}

.addfriend-user-alias {
    color: #999;
    font-size: 1rem;
    font-style: italic;
}

.addfriend-add-form {
    position: absolute;
    bottom: -0.5rem;
    right: 0.5rem;
}

.addfriend-add-button {
    background-color: black;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.75rem;
}

.addfriend-empty {
    text-align: center;
    padding: 2rem;
    color: #999;
}

.addfriend-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.addfriend-empty-text {
    margin: 0;
}

.addfriend-not-authenticated {
    text-align: center;
    padding: 2rem;
}

.addfriend-common-friends {
    margin: 0;
    color: #999999;
    font-size: 0.85rem;
    font-style: italic;
}

.invite-dialog {
    border: none;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    max-width: 420px;
    width: 90%;
}

.invite-dialog::backdrop {
    background: rgba(0,0,0,0.5);
}

.invite-dialog-content {
    padding: 28px 24px 20px;
}

.invite-dialog-title {
    font-size: 1.2rem;
    margin: 0 0 8px 0;
    color: #667eea;
}

.invite-dialog-desc {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 18px 0;
}

.invite-dialog-form-group {
    margin-bottom: 16px;
}

.invite-dialog-email-input {
    width: 100%;
    box-sizing: border-box;
}

.invite-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

.invite-dialog-send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}


/*  Co-Friend Page Styles */
.cofriend-profile-img {
    width: 48px;
    height: 48px;
    border-radius: 15%;
    object-fit: cover;
}

.cofriend-profile-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 15%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cofriend-pane {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}