body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Top Navigation */
.top-nav {
    background-color: #1e1e1e;
    border-bottom: 1px solid #333;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 20;
}

.nav-tab {
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.1em;
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.nav-tab:hover {
    color: #e0e0e0;
}

.nav-tab.active {
    color: #bb86fc;
    border-bottom-color: #bb86fc;
}

/* View Container */
.view-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Hidden by default */
}

.view.active {
    display: flex;
}

/* --- Societies View Layout --- */
#view-societies {
    flex-direction: row;
}

/* Sidebar (Left) */
#sidebar-left {
    width: 300px;
    background-color: #1e1e1e;
    border-right: 1px solid #333;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 15px;
    background-color: #1e1e1e;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #333;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.2em;
    color: #bb86fc;
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#search-input,
#tag-filter {
    background: #333;
    border: 1px solid #444;
    color: #e0e0e0;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: inherit;
}

#search-input:focus,
#tag-filter:focus {
    outline: none;
    border-color: #bb86fc;
}

.active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
}

.tag-chip {
    background-color: #bb86fc;
    color: #000;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag-chip .remove-tag {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    line-height: 1;
}

.tag-chip .remove-tag:hover {
    color: #fff;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #2c2c2c;
    transition: background-color 0.2s;
}

.nav-item:hover {
    background-color: #2c2c2c;
}

.nav-item.active {
    background-color: #333;
    border-left: 4px solid #bb86fc;
}

.nav-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    background-color: white;
    border: 1px solid #444;
}

.nav-item span {
    font-size: 0.95em;
    font-weight: 500;
}

/* Main Content (Center) */
#main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background-color: #121212;
}

/* Sidebar (Right - Explore) */
#sidebar-right {
    width: 250px;
    background-color: #1e1e1e;
    border-left: 1px solid #333;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 20px;
}

.explore-card {
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    background: #252525;
}

.explore-card:hover {
    transform: scale(1.03);
    border-color: #bb86fc;
}

.explore-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.explore-card h4 {
    margin: 0;
    padding: 10px;
    font-size: 0.9em;
    text-align: center;
    color: #e0e0e0;
}

/* --- The Order View Layout --- */
#view-order {
    overflow-y: auto;
    padding: 40px;
    /* display: none; Removed to allow .view.active to control visibility */
    justify-content: center;
}

.order-container {
    max-width: 800px;
    width: 100%;
}

.order-title {
    text-align: center;
    font-size: 3em;
    color: #cf6679;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 4px;
    border-bottom: 2px solid #cf6679;
    padding-bottom: 20px;
}

/* Shared Content Styles */
.society-detail,
.order-content {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.society-detail h2 {
    margin-top: 0;
    color: #bb86fc;
    font-size: 2.5em;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.main-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background-color: white;
}

.section-title {
    font-weight: bold;
    color: #03dac6;
    margin-top: 25px;
    display: block;
    font-size: 1.3em;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.content-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 20px;
    white-space: pre-line; /* Preserve line breaks in text */
}

.tags {
    margin-bottom: 30px;
}

.tag {
    display: inline-block;
    background-color: #333;
    color: #cf6679;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 1px solid #444;
}

ul {
    padding-left: 20px;
    margin: 15px 0;
    color: #ddd;
}

li {
    margin-bottom: 10px;
    line-height: 1.6;
}

strong {
    color: #fff;
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    border: 1px solid #333;
    background-color: white;
}

.gallery img:hover {
    transform: scale(1.05);
    opacity: 0.9;
    z-index: 1;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #121212;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}



 
 / *   N e t w o r k   V i e w   * / 
 
 # v i e w - n e t w o r k   { 
 
         b a c k g r o u n d - c o l o r :   # 0 0 0 ; 
 
         p o s i t i o n :   r e l a t i v e ; 
 
 } 
 
 
 
 # n e t w o r k - c a n v a s   { 
 
         w i d t h :   1 0 0 % ; 
 
         h e i g h t :   1 0 0 % ; 
 
         d i s p l a y :   b l o c k ; 
 
 } 
 
 
 
 # n e t w o r k - t o o l t i p   { 
 
         c o l o r :   # f f f ; 
 
         f o n t - s i z e :   1 4 p x ; 
 
         z - i n d e x :   1 0 0 ; 
 
 } 
 
 
 
 # n e t w o r k - c o n t r o l s   { 
 
         c o l o r :   # f f f ; 
 
         f o n t - s i z e :   1 4 p x ; 
 
 } 
 
 