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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #f0f2f5;
            color: #333;
        }

        .navbar {
            background-color: #4CAF50 !important;

        }

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

        .navbar ul li a {
            text-decoration: none;
            color: #fff;
            font-weight: 500;
            transition: opacity 0.3s;
        }
        
/* home page css */
 .hero-section {
            padding: 60px 20px;
            background: #f8f9fa;
            border-radius: 12px;
            margin-top: 40px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

        .endpoint-list code {
            display: block;
            background: #e9ecef;
            padding: 10px 14px;
            border-radius: 6px;
            margin: 6px 0;
            font-size: 0.95rem;
            color: #333;
        }

        .small-text {
            font-size: 0.9rem;
            margin-top: 30px;
            color: #6c757d;
            text-align: center;
        }
        /* end home page css */
           .categories-container {
            max-width: 720px;
            margin: 40px auto;
            background: #ffffff;
            border-radius: 1rem;
            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
            padding: 40px;
        }

        .categories-title {
            font-size: 2.2rem;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 28px;
            text-align: center;
        }

        .alert-message {
            background: #f8d7da;
            color: #842029;
            border: 1px solid #f5c2c7;
            padding: 12px 18px;
            border-radius: 6px;
            margin-bottom: 20px;
            text-align: center;
            font-weight: 500;
            font-size: 1rem;
        }

        .add-category-title {
            margin-top: 36px;
            margin-bottom: 18px;
            color: #2980b9;
            font-size: 1.5rem;
            font-weight: 600;
            text-align: center;
        }

        .btn-gradient {
            background: linear-gradient(90deg, #4f8cff, #38c6ff);
            border: none;
            font-weight: 600;
            padding: 10px 28px;
            border-radius: 8px;
            transition: background 0.3s ease-in-out;
            width: 100%;
        }

        .btn-gradient:hover {
            background: linear-gradient(90deg, #38c6ff, #4f8cff);
        }

        .action-buttons {
            display: flex;
            gap: 0.5rem;
            justify-content: center;
        }

        /* Merge pdf page css */
          .merge-section {
            background: #f9fbfd;
            min-height: 100vh;
            padding-top: 60px;
            padding-bottom: 60px;
        }

        .merge-box {
            background: #ffffff;
            padding: 40px;
            border-radius: 1rem;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
            max-width: 720px;
            margin: 0 auto;
        }

        .merge-box h2 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 16px;
            color: #2c3e50;
            text-align: center;
        }

        .merge-box h3 {
            font-size: 1.1rem;
            color: #6c757d;
            margin-bottom: 24px;
            text-align: center;
        }

        .badge-timer {
            font-size: 0.95rem;
            padding: 10px 16px;
        }

        .alert-success a {
            font-weight: bold;
            color: #155724;
        }

        .form-control[type="file"] {
            border-radius: 0.5rem;
            padding: 10px;
        }

        .btn-primary {
            padding: 10px 24px;
            border-radius: 0.5rem;
            font-weight: 600;
        }
        /* end pdf merge css*/
        /* Chat page css*/
           .chat-wrapper {
            display: flex;
            height: 90vh;
            max-height: 100%;
            overflow: hidden;
            background: #f4f6f9;
            border-radius: 1rem;
            margin: 5px auto;
            max-width: 1200px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        .usertoggle-btn {
            display: none;
            position: absolute;
            top: 6px;
            right: 12px;
            background: #007bff;
            color: #fff;
            border: none;
            padding: 8px 14px;
            border-radius: 6px;
            z-index: 1200;
        }

        .sidebar {
            width: 250px;
            background: #fff;
            border-right: 1px solid #dee2e6;
            padding: 20px;
            overflow-y: auto;
            transition: all 0.3s ease-in-out;
            z-index: 1000;
        }

        .sidebar h2 {
            font-size: 1.3rem;
            margin-bottom: 1rem;
            text-align: center;
        }

        .user-list-wrapper .user {
            padding: 10px 15px;
            margin-bottom: 8px;
            background: #f1f3f5;
            border-radius: 6px;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .user-list-wrapper .user:hover {
            background: #dee2e6;
        }

        .user.online {
            font-weight: bold;
            color: #28a745;
        }

        .chat-box {
            flex: 1;
            display: flex;
            flex-direction: column;
            padding: 20px;
            background: #fafafa;
            overflow: hidden;
        }

        #messages {
            flex: 1;
            overflow-y: auto;
            margin-bottom: 10px;
            padding-right: 8px;
        }

        .message {
            background: #e9ecef;
            padding: 10px 14px;
            margin: 8px 15px;
            border-radius: 8px;
            max-width: 75%;
            position: relative;
            word-wrap: break-word;
            font-size: 0.95rem;
        }

        .message.own {
            background: #007bff;
            color: #fff;
            margin-left: auto;
            text-align: right;
        }

        .msg-time {
            font-size: 0.75rem;
            color: #adb5bd;
            display: block;
            margin-top: 4px;
        }

        .msg-options-wrapper {
            position: absolute;
            top: 0px;
            right: -2px;
            color: white;
            font-size: larger;
        }

        .dots-btn {
            background: transparent;
            border: none;
            font-size: 1rem;
            cursor: pointer;
            color: #fff6f6;
            padding: 3px 6px;
            font-size: large;
            font-size: large;
        }

        .dots-btn:hover {
            color: #fff6f6;

        }

        .dropdown-menu {
            position: absolute;
            right: 0;
            background: #fff;
            border: 1px solid #ccc;
            border-radius: 0.5rem;
            padding: 0.5rem;
            min-width: 120px;
            z-index: 10;
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
        }

        .dropdown-menu button {
            display: block;
            width: 100%;
            padding: 6px 12px;
            background: none;
            border: none;
            text-align: left;
            font-size: 0.9rem;
            color: #333;
        }

        .dropdown-menu button:hover {
            background: #f8f9fa;
        }

        #chatForm {
            display: flex;
            gap: 0.5rem;
        }

        #messageInput {
            flex: 1;
            padding: 10px;
            border-radius: 0.5rem;
            border: 1px solid #ccc;
        }

        #chatForm button {
            padding: 10px 16px;
            background: #007bff;
            border: none;
            border-radius: 0.5rem;
            color: #fff;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s;
        }

        #chatForm button:hover {
            background: #0056b3;
        }

        .deleted {
            text-align: center;
            color: red;
            font-weight: 600;
            font-size: 0.9rem;
            margin-top: 8px;
        }

        /* Mobile styles */
        @media screen and (max-width: 768px) {
            .chat-wrapper {
                flex-direction: column;
            }

            .usertoggle-btn {
                display: block;
            }

            .sidebar {
                position: fixed;
                top: 60px;
                right: -260px;
                height: calc(100vh - 60px);
                width: 250px;
                transition: right 0.3s ease;
                box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
            }

            .sidebar.show {
                right: 0;
            }

            .chat-box {
                padding: 16px;
            }
        }
        /* End chat page css*/
        /*  Video chat page css*/
           .video-section {
            max-width: 1140px;
            /* increased width */
            margin: 40px auto;
            padding: 30px 20px;
            background: #fff;
            border-radius: 1rem;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        }

        .controls {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 25px;
            justify-content: center;
        }

        .controls input {
            flex: 1 1 250px;
            padding: 10px 15px;
            border: 1px solid #ced4da;
            border-radius: 8px;
        }

        .controls button {
            padding: 10px 24px;
            background-color: #0d6efd;
            color: #fff;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            transition: background 0.3s ease;
        }

        .controls button:hover {
            background-color: #0b5ed7;
        }

        .video-wrapper {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
        }

        .video-box {
            flex: 1 1 100%;
            max-width: 100%;
            text-align: center;
        }

        @media (min-width: 768px) {
            .video-box {
                flex: 0 0 48%;
            }
        }

        .video-box label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #495057;
        }

        .video-box video {
            width: 100%;
            height: 400px;
            /* increased fixed height */
            border-radius: 12px;
            background: #000;
            box-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
            object-fit: cover;
        }

        @media (max-width: 576px) {
            .video-box video {
                height: 240px;
                /* more suitable for small screens */
            }
        }
        /* end video chat page cs*/