
/* Base Styles */
.drop-indicator {
  position: absolute;
  background: #007bff; /* blue line */
  width: 2px;
  height: 20px;
  z-index: 3000;
}

.chart-card {
  cursor: move;
  transition: 0.2s;
}
.chart-card.opacity-50 {
  opacity: 0.5;
}

.signup-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.signup-container h2 {
    margin-bottom: 20px;
}

.signup-container p {
    color: #555;
    margin-bottom: 20px;
}

.signup-form .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.signup-form input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.signup-form button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.signup-form button:hover {
    background-color: #2980b9;
}

.login-link {
    margin-top: 15px;
    font-size: 14px;
}

.login-link a {
    color: #3498db;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}
.strength-meter {
    margin-top: 5px;
    font-weight: bold;
    font-size: 14px;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    flex: 1;
    padding-right: 40px; /* leave space for the icon */
}

.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    user-select: none;
}
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    flex: 1;
    padding-right: 40px; /* leave space for the icon */
}

.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #555;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #000;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

h2, h3 {
    color: #333;
    margin-top: 20px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
/* Navbar dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #2c3e50;
    color: white;
    padding: 8px 15px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 150px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    border-radius: 5px;
    z-index: 1;
}

.dropdown-content a {
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #eee;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f0f0f0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropbtn:hover {
    background-color: #34495e;
}

/* Navbar */
nav {
    background-color: #2c3e50;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
}

nav a:hover {
    text-decoration: underline;
}

/* Tabs */
ul.tabs {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 20px 0 10px 0;
    border-bottom: 2px solid #ccc;
}

ul.tabs li {
    margin-right: 10px;
}

ul.tabs li a {
    display: block;
    padding: 10px 15px;
    background-color: #eee;
    color: #333;
    border-radius: 5px 5px 0 0;
    text-decoration: none;
}

ul.tabs li a.active {
    background-color: #fff;
    border-bottom: 2px solid #fff;
    font-weight: bold;
}

/* Excel Handsontable container */
#hot {
    margin-top: 10px;
    border: 1px solid #ccc;
}

/* Word editor */
#word_editor {
    border: 1px solid #ccc;
    padding: 10px;
    min-height: 400px;
    background-color: #fff;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Search input */
input[type="text"] {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    width: 250px;
}

/* Buttons */
button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: white;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background-color: #2980b9;
}

/* Search Highlight */
mark, .search_highlight {
    background-color: #ffff99;
}

/* Word diff highlight */
#word_editor mark {
    background-color: #ffeb3b;
    font-weight: bold;
}

/* PDF iframe */
iframe {
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Tables for Excel comparison */
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
}

table th, table td {
    border: 1px solid #ccc;
    padding: 5px;
    text-align: left;
}

table td {
    background-color: #fff;
}

table td.diff {
    background-color: #ff9999;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 10px;
    }

    input[type="text"] {
        width: 100%;
    }

    ul.tabs {
        flex-wrap: wrap;
    }

    ul.tabs li {
        margin-bottom: 5px;
    }
}
/* chatgpt */
.summary-box {
    background: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #4CAF50;
    font-style: italic;
    margin: 10px 0;
    white-space: pre-wrap;
}

.diff-box {
    overflow-x: auto;
    margin-top: 20px;
    border: 1px solid #ccc;
    background: #fff;
    padding: 10px;
}

.diff-box table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
}

.diff-box td, .diff-box th {
    padding: 4px 8px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.diff-box .diff_add {
    background-color: #e6ffe6; /* green */
}

.diff-box .diff_chg {
    background-color: #ffffcc; /* yellow */
}

.diff-box .diff_sub {
    background-color: #ffe6e6; /* red */
}
.diff-box details {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    padding: 5px;
}

.diff-box summary {
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 5px;
}

.diff-controls {
    margin: 10px 0;
    display: flex;
    gap: 10px;
}

.diff-controls button {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    background: #4CAF50;
    color: white;
    cursor: pointer;
}

.diff-controls button:hover {
    background: #45a049;
}

/*Side bar*/
/* Layout */
.layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    transition: width 0.3s;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
}

/* Sidebar Navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.sidebar-nav a {
    color: white;
    padding: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.sidebar-nav a:hover {
    background: #34495e;
}

/* Collapsed Sidebar */
.sidebar.collapsed .sidebar-nav a span {
    display: none;
}

.sidebar.collapsed h3 {
    display: none;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
    background: #f4f6f9;
    transition: margin-left 0.3s;
}

.main-content.expanded {
    margin-left: -180px; /* Adjust for collapsed sidebar */
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        height: 100%;
        z-index: 1000;
    }

    .sidebar.show {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }
}

/* Top Navigation */
.topnav {
    height: 60px;
    background: #34495e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.topnav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topnav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topnav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.topnav a:hover {
    color: #1abc9c;
}

.top-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

/* Layout Adjustments */
.layout {
    display: flex;
    min-height: 100vh;
    margin-top: 60px; /* offset for topnav */
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    transition: width 0.3s, left 0.3s;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 15px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-nav a {
    color: white;
    padding: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.sidebar-nav a:hover {
    background: #34495e;
}

.sidebar.collapsed .sidebar-nav a span {
    display: none;
}

.sidebar.collapsed h3 {
    display: none;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
    background: #f4f6f9;
    transition: margin-left 0.3s;
}

.main-content.expanded {
    margin-left: -180px; /* adjust when sidebar collapsed */
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -250px;
        top: 60px; /* offset for topnav */
        height: calc(100% - 60px);
        z-index: 1000;
    }

    .sidebar.show {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }
}

/* Dropdown Base */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    color: white;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 2000;
    border-radius: 6px;
    overflow: hidden;
}

.dropdown-content a,
.dropdown-content p {
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Avatar in dropdown */
.top-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
/* Centered Search Bar */
.topnav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.search-form {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    border: 1px solid #ddd;
}

.search-form input {
    border: none;
    padding: 8px 12px;
    outline: none;
    flex: 1;
    font-size: 14px;
}

.search-form button {
    background: #1abc9c;
    border: none;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}
/*form {*/
/*    background: #fff;*/
/*    padding: 20px;*/
/*    border-radius: 8px;*/
/*    max-width: 400px;*/
/*    margin: auto;*/
/*    box-shadow: 0 2px 6px rgba(0,0,0,0.1);*/
/*}*/

/*form button {*/
/*    background: #4CAF50;*/
/*    color: white;*/
/*    border: none;*/
/*    padding: 10px 15px;*/
/*    border-radius: 6px;*/
/*    cursor: pointer;*/
/*}*/

/*form button:hover {*/
/*    background: #45a049;*/
/*}*/

.user-avatar, .top-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
button.danger {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

button.danger:hover {
    background: #c0392b;
}


.search-form button:hover {
    background: #16a085;
}
@media (max-width: 768px) {
    .topnav-center {
        display: none; /* Hide on mobile to save space */
    }
    .dropdown-content {
        right: 10px;
        min-width: 160px;
    }
}

.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #2c3e50; /* background: #f8f9fa;  Use your sidebar's background color here */
    color: #212529;
    z-index: 100;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.03);
}


    
    /* color: white;
    display: flex;
    flex-direction: column;
    transition: width 0.3s; */


                /* Optional: file type color mapping */
                .icon-pdf {
                    color: #e74c3c;
                } /* red for PDF */
                .icon-doc,
                .icon-docx {
                    color: #2a5699;
                } /* blue for Word */
                .icon-xls,
                .icon-xlsx {
                    color: #1d6f42;
                } /* green for Excel */
                .icon-ppt,
                .icon-pptx {
                    color: #d24726;
                } /* orange for PowerPoint */
                .icon-txt {
                    color: #666;
                } /* gray for text files */
                .icon-default {
                    color: #6c757d;
                } /* fallback */
             