/* Add these styles at the beginning of your CSS file */

:root {
    --header-height: 8vh;
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --text-color: #333;
    --border-color: #dee2e6;
    --hover-color: #f8f9fa;
}

/* Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    /* Remove or comment out the sidebar styles */
}

.sidebar-header {
    /* Remove or comment out the sidebar header styles */
}

.logo {
    /* Remove or comment out the logo styles */
}

.sidebar-nav {
    /* Remove or comment out the sidebar nav styles */
}

.nav-item {
    /* Remove or comment out the nav-item styles */
}

.nav-item:hover {
    /* Remove or comment out the nav-item hover styles */
}

.nav-item.active {
    /* Remove or comment out the nav-item active styles */
}

.nav-item i {
    /* Remove or comment out the nav-item i styles */
}

.sidebar-nav >.nav-item:last-child {
    /* Remove or comment out the sidebar nav last item styles */
}

/* Main Wrapper */
.main-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

/* Top Header */
.top-header {
    height: var(--header-height);
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    z-index: 999;
}

.header-content {
    height: 100%;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
}

.page-title h1{
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.username {
    font-weight: 500;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* Main Content */
.main-content {
    background-color: #f8f9fa;
    min-height: calc(100vh - var(--header-height));
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-wrapper {
        width: 100%;
        margin-left: 0;
    }

    .top-header {
        left: 0;
        width: 100%;
    }
}

/* General styles */
body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
nav {
    background-color: #2c3e50;
    color: #fff;
    padding: 1rem;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}

nav ul li {
    margin-left: 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #3498db;
}

/* Projects page */
.projects-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.projects-header h1 {
    font-size: 24px;
    color: #2c3e50;
}

/* Datagrid */
.datagrid {
    width: 100%;
    overflow-x: auto;
}

.datagrid table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.datagrid th, .datagrid td {
    /*padding: 12px 15px;*/
    text-align: left;
}

.datagrid thead {
    background-color: #f8f9fa;
    color: #333;
    font-weight: bold;
}

.datagrid thead th {
    border-bottom: 2px solid #dee2e6;
    padding: 0px;
}

.datagrid tbody tr:hover {
    background-color: #f5f5f5;
}

.datagrid tbody td {
    border-bottom: 1px solid #dee2e6;
    padding: 0px;
}

/* Align action buttons to the right */
.datagrid td:last-child {
    text-align: right;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease;
    border: none;
    cursor: pointer;
    margin-right: 5px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.btn-primary {
    background-color: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-info {
    background-color: #2ecc71;
    color: #fff;
}

.btn-info:hover {
    background-color: #27ae60;
}

.btn-warning {
    background-color: #f1c40f;
    color: #fff;
}

.btn-warning:hover {
    background-color: #f39c12;
}

.btn-danger {
    background-color: #e74c3c;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-secondary {
    background-color: #95a5a6;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Form styles */
.form-group {
    margin-bottom: 5px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input[type="file"] {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    font-size: 14px;
}

/* Responsive design */
@media screen and (max-width: 600px) {
    .projects-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .projects-header button {
        margin-top: 10px;
    }

    .datagrid table {
        font-size: 14px;
    }

    .btn-sm {
        padding: 4px 8px;
        font-size: 12px;
    }
}

.search-and-create {
    display: flex;
    align-items: center;
}

#search-input {
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Auth pages (Login and Register) */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-container h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

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

.auth-form label {
    display: block;
    margin-bottom: 5px;
    color: #34495e;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.auth-form button {
    width: 100%;
    padding: 10px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.auth-link {
    text-align: center;
    margin-top: 20px;
}

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

.auth-link a:hover {
    text-decoration: underline;
}

/* Profile page styles */
.profile-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-container h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

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

#profile-form label {
    display: block;
    margin-bottom: 5px;
    color: #34495e;
}

#profile-form input[type="text"],
#profile-form input[type="email"],
#profile-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

#profile-form button {
    width: 100%;
    padding: 10px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.danger-zone {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.danger-zone h2 {
    color: #e74c3c;
    font-size: 18px;
    margin-bottom: 15px;
}

#delete-account-btn {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#delete-account-btn:hover {
    background-color: #c0392b;
}

/* Fixed column styles */
.fixed-column {
    position: sticky;
    left: 0;
    background-color: #fff;
    z-index: 1;
    box-shadow: 2px 0 5px -2px rgba(0,0,0,0.1);
}


table.dataTable tbody th, table.dataTable tbody td {
    padding: 0px;
 /*   font-size: 12px;*/
}

/* Dropdown styles */
.dropdown-menu {
    padding: 0.25rem 0;
    min-width: 8rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.1);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #333;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item i {
    width: 1rem;
    text-align: center;
    color: #6c757d;
}

.dropdown-toggle::after {
    display: none;
}



/* Ensure dropdown doesn't get cut off */
.table td:last-child {
    position: relative;
}

.dropdown-menu-end {
    right: 0;
    left: auto;
}

/* Avatar dropdown styles */
.avatar-dropdown {
    position: relative;
    display: inline-block;
}

.avatar-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.avatar-trigger:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.username {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

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

.avatar-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.avatar-menu::before,
.avatar-menu::after {
    content: '';
    position: absolute;
    right: 16px;
    border-style: solid;
}

.avatar-menu::before {
    top: -8px;
    border-width: 0 8px 8px;
    border-color: transparent transparent rgba(0, 0, 0, 0.1);
}

.avatar-menu::after {
    top: -7px;
    border-width: 0 7px 7px;
    border-color: transparent transparent white;
}

.avatar-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.avatar-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 14px;
}

.avatar-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.avatar-item i {
    width: 16px;
    margin-right: 10px;
    color: #6c757d;
}

.avatar-item:hover i {
    color: #007bff;
}

.avatar-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 4px 0;
}



