@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #004d00 10%, #b38600 40%);
    color: #fff;
}

.sidebar {
    width: 180px;
    height: 100vh;
    background: rgba(0, 77, 0, 0.8);
    padding: 20px;
    position: fixed;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #b38600 #004d00;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #b38600;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: #004d00;
}

.sidebar h2 {
    text-align: left;
    color: #b38600;
    width: 100%;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    width: 100%;
    margin-top: 20px;
}

.sidebar ul li {
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    transition: 0.3s;
    font-size: 18px;
    padding-left: 10px;
}

.sidebar ul li a i {
    font-size: 24px;
    margin-right: 10px;
}

.sidebar ul li a:hover {
    background: #b38600;
    padding-left: 20px;
}

.main-content {
    margin-left: 200px;
    padding: 20px;
}

/* Top-right menu styles */
.top-right-menu {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-right-menu .icon {
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
}

.top-right-menu .icon:hover {
    background: rgba(255, 255, 255, 0.4);
}

.profile-dropdown {
    position: relative;
}

.profile-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-btn i {
    margin-left: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 35px;
    right: 0;
    background: #fff;
    color: black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    min-width: 120px;
    z-index: 10;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
    transition: background 0.3s ease;
}

.dropdown-content a:hover {
    background: #fcc705;
}

.profile-dropdown:hover .dropdown-content {
    display: block;
}

button {
    background: linear-gradient(145deg, #f0f0f0, #cacaca);
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background: linear-gradient(145deg, #cacaca, #f0f0f0);
    transform: translateY(-2px);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.25);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}

th {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

td {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

td a {
    display: inline-block;
    background: #b38600;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

td a:hover {
    background: #f0a500;
    transform: translateY(-2px);
}

header h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding-left: 20px;
}

.overview {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
    flex: 1;
    text-align: center;
    font-size: 18px;
}

.card span {
    font-weight: bold;
    font-size: 24px;
    display: block;
    margin-top: 10px;
}

@media (max-width: 768px) {
    body {
        background: linear-gradient(#004d00, #b38600);
    }
}
/* Login Form Styling */
.login-container {
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 350px;
    margin: auto;
    margin-top: 10vh;
}

.login-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.login-container form {
    display: flex;
    flex-direction: column;
}

.login-container input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.login-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.login-container input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
}

.login-container button {
    background: linear-gradient(145deg, #f0f0f0, #cacaca);
    border: none;
    padding: 12px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.login-container button:hover {
    background: linear-gradient(145deg, #cacaca, #f0f0f0);
    transform: translateY(-2px);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.25);
}

.login-container p {
    margin-top: 15px;
    font-size: 14px;
}

.login-container a {
    color: #fcc705;
    text-decoration: none;
    font-weight: 600;
}

.login-container a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 30px;
    }

    .login-container h2 {
        font-size: 22px;
    }

    .login-container input, .login-container button {
        font-size: 16px;
        padding: 10px;
    }
}
/* Register Form Styling */
.register-container {
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 350px;
    margin: auto;
    margin-top: 10vh;
}

.register-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.register-container form {
    display: flex;
    flex-direction: column;
}

.register-container input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.register-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.register-container input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
}

.register-container button {
    background: linear-gradient(145deg, #f0f0f0, #cacaca);
    border: none;
    padding: 12px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.register-container button:hover {
    background: linear-gradient(145deg, #cacaca, #f0f0f0);
    transform: translateY(-2px);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.25);
}

.register-container p {
    margin-top: 15px;
    font-size: 14px;
}

.register-container a {
    color: #fcc705;
    text-decoration: none;
    font-weight: 600;
}

.register-container a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .register-container {
        width: 90%;
        padding: 30px;
    }

    .register-container h2 {
        font-size: 22px;
    }

    .register-container input, .register-container button {
        font-size: 16px;
        padding: 10px;
    }
} 

#settingsForm select,
#settingsForm input[type="checkbox"] {
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    color: black;
    cursor: pointer;
}
#settingsForm {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-left: 30px; /* Adds space between the form and the sidebar */
}
#fileUploadForm {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
    max-width: 230px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-left: 30px; /* Adds space between the form and the sidebar */
}
#fileUploadForm input[type="file"] {
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 100;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
}
#taskForm {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-left: 30px; /* Adds space between the form and the sidebar */
}

#messages {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3);

}
#chatForm {
    display: flex;
    gap: 10px;
}

#chatForm input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}
  #chatForm input[type="text"] {
        font-size: 14px;
        padding: 8px;

    }

    #chatForm button {
        font-size: 14px;
        padding: 10px;
    }
}
