* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #240735;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: #95087a;
    color: white;
    padding: 10px 0;
    width: 100%;
    position: relative;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #95087a;
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 10px;
}

.dropdown-menu li a {
    color: white;
}

/* Main Content */
main {
    flex: 1 0 auto;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Profiles */
.profiles {
    margin-bottom: 40px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.profile-card {
    background-color: #95087a;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 15px;
    display: flex;
    align-items: center;
    transition: transform 0.3s;
    cursor: pointer;
}

.profile-card:hover {
    transform: scale(1.05);
}

.profile-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.profile-card .profile-info {
    flex-grow: 1;
    text-align: left;
}

.profile-card .profile-info h3 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 18px;
}

.profile-card .profile-info p {
    margin: 5px 0;
    color: #fff;
    font-size: 14px;
}

.profile-card .status.online {
    color: green;
    animation: blink 1s infinite;
}

.profile-card .status.offline {
    color: red;
}

@keyframes blink {
    50% { opacity: 0.5; }
}

/* Pagination */
.next-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #95087a;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.next-button:hover {
    background-color: #7a065f;
}

/* About Section */
.about {
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
}

.about-img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}

/* Profile Details */
.profile-details {
    background-color: #95087a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; 
    flex-wrap: wrap; 
    box-sizing: border-box; 
}


.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.profile-info {
    flex-grow: 1;
    color: #fff;
}

.profile-info h2 {
    margin-bottom: 10px;
    font-size: 24px;
}

.profile-info p {
    margin: 5px 0;
    font-size: 16px;
}

.profile-actions {
    background-color: #240735;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

.profile-actions button {
    padding: 10px 20px;
    margin: 10px;
    background-color: #95087a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-actions button:disabled {
    background-color: #666;
    cursor: not-allowed;
}

.profile-actions button:hover:not(:disabled) {
    background-color: #7a065f;
}

.profile-actions button i {
    font-size: 18px;
}

/* Video Call Overlay */
#video-call-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#remote-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    loop: true;
}

#local-video {
    position: absolute;
    bottom: 60px;
    right: 20px;
    width: 100px;
    height: 150px;
    border: 2px solid white;
}

.call-controls {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 10px;
}

.call-controls button {
    padding: 10px 20px;
    background-color: #95087a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.call-controls button:hover {
    background-color: #7a065f;
}

/* Account Section */
.account-options {
    text-align: center;
}

.account-options a {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    background-color: #95087a;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.account-options a:hover {
    background-color: #7a065f;
}

/* Forms */
.signup, .login {
    max-width: 500px;
    margin: 0 auto;
    background-color: #95087a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.signup h2, .login h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
}

.signup form, .login form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.signup label, .login label {
    font-weight: bold;
    color: #fff;
}

.signup input, .signup textarea, .login input, .signup select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #240735;
    color: #fff;
}

.signup button, .login button {
    padding: 10px;
    background-color: #95087a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.signup button:hover, .login button:hover {
    background-color: #7a065f;
}

.error {
    color: red;
    text-align: center;
}

/* Footer */
footer {
    background-color: #240735;
    color: white;
    padding: 20px 0;
    width: 100%;
    flex-shrink: 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
}


/* Responsive Design */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #95087a;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .dropdown-menu {
        position: static;
        background-color: #7a065f;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .chat-input {
        bottom: 70px;
        padding: 0 10px;
    }

    .chat-container {
        height: calc(100vh - 110px);
    }
}