@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background: url("../imgs/backgtoundWeb.png") no-repeat center/cover;
    min-height: 100vh;
}

textarea {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    resize: none;
    height: 45px;
    width: 100%;
    scrollbar-width: none;
    transition: all 0.5s ease; 
}

textarea:focus,
textarea:not(:placeholder-shown) {
    height:150px;
    border-color: #40B3A2;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.login-section h1 {
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
}

.dashboard {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

.sidebar-left {
    width: 260px;
    background: white;
    border-right: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.university-logo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.logo-box,
.add-post-btn  {
    width: 32px;
    height: 32px;
    background: #40B3A2;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3;
}
.logo-box{
    width: 50px;
    height: 50px;
    background: url("../imgs/s.png") no-repeat center/cover;
}

.add-post-btn:hover {
    background: #368F82;
}

.university-name {
    margin-left: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #6b7280;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: #f3f4f6;
    color: #40B3A2;
}

.nav-item svg {
    min-width: 20px;
}

.main-content {
    flex: 1;
    padding: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    height: 100vh;
    overflow: scroll;
    scrollbar-width: none;
}

.main-content div {
    animation: fadeIn 0.2s;
}


.link-list {
    display: flex;
    gap: 5px;
}

.link-list a {
    text-decoration: none;
    color: #40B3A2;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-bar {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    width: 240px;
    outline: none;
    transition: all 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.search-bar:focus {
   border-color: #40B3A2;
}

.create-new-post,
.filter-categories {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
}

.new-post {
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: #6b7280;
    gap: 10px;
}

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

.post-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.post-actions a {
    text-decoration: none;
    color: #6b7280;
}

.action {
    display: flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    color: #6b7280;
    fill: #6b7280;
}

.author,
.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.avatar,
.comment-avatar {
    width: 32px;
    height: 32px;
    background: url('../imgs/avatar.png') no-repeat center/cover;
    border-radius: 50%;
    margin-right: 0.75rem;
}

/* Right Sidebar Styles */
.sidebar-right {
    width: 260px;
    background: white;
    border-left: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.attendees-list {
    margin-top: 1rem;
}

.attendee {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}


.attendee-avatar {
    width: 32px;
    height: 32px;
    background: #e5e7eb;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.logged-in {
    color: green;
  }
  
  .logged-out {
    color: red;
  }
  
.categories-content {
    border-top: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
}

.categories-list {
    margin-top: 1rem;
    display: flex;
    height: 0;
    flex-wrap: wrap;
    gap: 10px;
    transition: all 0.3s ease;
}

.category-item {
    padding: 8px 16px;
    border: 1px #40B3A2 solid;
    background: white;
    color: #40B3A2;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

  .profile-container {
    max-width: 800px;
    margin-bottom: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
}

.profile-header {
    height: 150px;
    background: #1f2937;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: url(../imgs/avatar.png) no-repeat center/cover;
    border-radius: 50%;
    position: absolute;
    bottom: -50px;
    left: 2rem;
    border: 4px solid white;
}

.profile-info {
    padding: 4rem 1rem 1.5rem;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.profile-email {
    align-items: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.profile-tabs {
    display: flex;
    gap: 15px;
    padding: 0 1rem;
}

.tab {
    padding: 7px 0;
    color: #6b7280;
    cursor: pointer;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    display: flex;
    position: relative;
    max-width: 900px;
    min-height: 500px;
    width: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.5s ease;
    animation: fadeIn 0.5s ease;
}

.login-section {
    background: url("../imgs/background.png") no-repeat center/cover;
    padding: 40px;
    max-width: 50%;
    color: white;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    right: 0;
    top: 0;
    bottom: 0;
    transition: all 0.5s ease-in-out;
    transform: translateX(0);
    z-index: 1;
}

.signup-section {
    padding: 40px;
    width: 50%;
    background: white;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    transition: all 0.5s ease-in-out;
    transform: translateX(0);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 40px;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
}

h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.welcome-text {
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
}

.sign-in-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 12px 40px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    margin-top: 20px;
    backdrop-filter: blur(5px);
}

.sign-in-btn:hover {
    background: white;
    color: #40B3A2;
}

.signup-header {
    color: #40B3A2;
    margin-bottom: 30px;
}

.social-btn:hover {
    background: #f5f5f5;
}

.divider {
    text-align: center;
    color: #666;
    margin: 20px 0;
}

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #40B3A2;
}

.sign-up-btn {
    width: 100%;
    padding: 12px;
    background: #40B3A2;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.sign-up-btn:hover {
    background: #368F82;
}

.title-categories {
    text-align: center;
    margin-bottom: 1rem;
}

.logout:hover, 
.nav-item.logout.active {
    color: #f44336;
}

.create-post-btn,
.create-comment-btn {
    width: 100%;
    padding: 12px;
    background: #40B3A2;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.create-post-btn:hover,
.create-comment-btn:hover {
    background: #368F82;
}

.no-posts {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.no-posts-message {
    text-align: center;
    color: #6b7280;
}

.no-posts-icon {
    margin-bottom: 1rem;
    color: #9ca3af;
}

.no-posts-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0.5rem 0;
    color: #374151;
}

.for-comment {
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1em;
}

.post-card.comment-page {
    position: sticky;
    top: 0;
}


.sidebar-right {
    width: 300px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: scroll;
}

.user {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.user:hover {
    background-color: #f3f4f6;
}

.user-avatar {
    width: 37px;
    height: 37px;
    background: url("../imgs/avatar.png") no-repeat center/cover;
    border-radius: 50%;
}

.user-notif {
    width: 37px;
    height: 37px;
    background: url("../imgs/message.gif") no-repeat center/cover;
    border-radius: 50%;
}

.user-typing {
    width: 37px;
    height: 37px;
    background: url("../imgs/typing.gif") no-repeat center/cover;
    border-radius: 50%;
}

.user-info {
    display: flex;
    flex-direction: column;
}


.user-email {
    font-size: 0.9rem;
    color: #777;
    max-width: 100px;
}

.user-status {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 15px;
    margin-left: -10px;
    margin-bottom: -23px;
    border: 3px solid #fff;
}

.categories-list.active + .create-post-btn {
    display: block !important;
}

.messages-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-header {
    padding: 5px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #ffffff;
    border-radius: 8px 8px 0 0;
}

.header-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.header-email {
    font-size: 14px;
    color: #666;
}

.messages-area {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* background-color: #f5f7fb; */
    background: url("../imgs/background.png") no-repeat center/cover;
}

.message-container {
    display: flex;
    flex-direction: column;
    max-width: 70%;
    gap: 4px;
   
}

.message-container.sent {
    align-self: flex-end;
}

.message-container.received {
    align-self: flex-start;
}

.message-content {
    padding: 12px 16px;
    border-radius: 16px;
    background-color: #10B981;
    color: white;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

.message-container.received .message-content {
    background-color: #F3F4F6;
    color: #333;
}

.message-time {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 8px;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
}

.message-container.sent .message-time {
    text-align: right;
}

.input-area {
    padding: 16px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
}

.message-input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    resize: none;
    min-height: 24px;
    max-height: 120px;
    font-size: 14px;
    line-height: 1.4;
}

.message-input:focus {
    outline: none;
    border-color: #40B3A2;
}

.send-button {
    padding: 8px 20px;
    background-color: #40B3A2;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    height: 50px;
    margin-top: auto;
    margin-bottom: auto;
    transition: background-color 0.2s;
}

.send-button:hover {
    background-color: #368F82;
}

.send-button:active {
    transform: translateY(1px);
}


.error-container {
    display: none;
    background-color: #40B3A2;
    color: #ffffff;
    border: 2px solid #2f8e7d;
    padding: 20px;
    margin: 0;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
    opacity: 0;
    z-index: 1000;
    text-align: center;
    width: 80%;
    max-width: 500px;
}

.error-container h2 {
    font-size: 24px;
    margin: 0;
    font-weight: bold;
    text-transform: uppercase;
}

.error-container p {
    font-size: 18px;
    margin-top: 10px;
    line-height: 1.5;
}

.error-container:hover {
    background-color: #2f8e7d;
    border-color: #1e6f60;
    cursor: pointer;
}



.user-status.online {
    background-color: #28a745;
}

.user-status.offline {
    background-color: #6c757d;
}

.category-item.selected {
    background: #40B3A2;
    color: white;
}

.action.active {
    color: #40B3A2;
}
.action.active svg {
    fill: #40B3A2;
}

.tab.active {
    color: #40B3A2;
    border-bottom: 2px solid #40B3A2 ;
}

.nav-item.active {
    color: #40B3A2;
    background-color: #eef2ff;
}

.login-section.active {
    transform: translateX(-100%);
}

.container.active {
    min-height: 720px;
}

.categories-list.active {
    height: max-content;
}

.signup-section.active {
    transform: translateX(100%);
}

.error-container.show {
    display: block;
    opacity: 1;
}












