body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
}

#frm {
    border: solid gray 1px;
    width: 30%;
    min-width: 300px;  /* Minimum width for desktop */
    max-width: 400px;  /* Maximum width for desktop */
    border-radius: 2px;
    margin: 0 auto;  /* Centered horizontally */
    background: white;
    padding: 50px;
    box-sizing: border-box;
    transition: all 0.3s ease;  /* Smooth transition for resizing */
}

#frm h3 {
    text-align: center;
    margin-bottom: 20px;
}

#frm p {
    margin-bottom: 20px;
}

#frm label {
    display: block;
    margin-bottom: 5px;
}

#frm input[type="text"],
#frm input[type="password"] {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

#frm input[type="submit"],
#btn {
    color: #fff;
    background: #337ab7;
    padding: 10px;
    width: 100%;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#frm input[type="submit"]:hover,
#btn:hover {
    background: #286090;
}

.container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center; /* Center items horizontally */
    padding-top: 0px; /* Adjusted padding top for spacing */
}

.sidebar {
    width: 200px;
    background-color: #fff;
    padding-left: 15px;
    transition: transform 0.3s ease;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
}

.sidebar ul li a:hover {
    color: #007bff;
}

.content {
    flex: 1;
    padding-top: 0px;
    background-color: #fff;
    margin-left: 20px;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 10px; /* Add padding to create a gap */
}

.task {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
}

.task p {
    margin: 0;
}

select[name="projects"] {
    margin-bottom: 20px; /* Adjust the value as needed */
}

.sidebar-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 20px;
}

.sidebar-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.logo-container {
    text-align: center;
    margin: 20px auto 30px;  /* 30px bottom margin to create the gap */
}

.logo-container h1 {
    font-size: 24px;
    margin: 0;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center; /* Center items horizontally */
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 200px;
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
        padding: 15px;
    }

    .sidebar-toggle {
        display: block;
    }

    .sidebar-close {
        display: block;
    }
}

@media (max-width: 480px) {
    .task-list {
        padding-right: 5px; /* Adjust padding for mobile view */
    }
	.task p {
        display: block;
        margin-bottom: 5px;
    }

    .container {
        padding-top: 50px; /* Adjust the top padding for mobile layout */
    }

    .logo-container h1 {
        font-size: 18px;
    }

    #frm {
        width: 90%;
        padding: 15px;
    }

    #btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    
    #frm input[type="text"],
    #frm input[type="password"],
    #frm input[type="submit"] {
        padding: 8px;
    }
}

.log-hour-container {
	display: flex;
	flex-direction: column;
	width: 100%;
}
.log-hour-row {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	border-bottom: 1px solid #ddd; /* Optional: Adds a border between rows */
}
.log-hour-row.header {
	font-weight: bold;
	background-color: #f2f2f2;
}
.log-hour-cell {
	flex: 1 1 100px; /* Minimum width of 100px, grows if space allows */
	padding: 10px;
	border: 1px solid #ddd;
	text-align: center;
	box-sizing: border-box;
	max-width: 109px; /* Ensures a maximum width for cells */
}

/* Task column takes more space */
.log-hour-cell.task {
	flex-grow: 2; /* Task column takes more space */
	max-width: none; /* Removes max-width restriction */
	text-align: left !important; 
}

 /* Specific styles for the Plan column */
.log-hour-row .log-hour-cell.plan {
	background-color: #e0f7fa; /* Light blue background */
}

/* Specific styles for the Total row */
.log-hour-row.total-row {
	background-color: #ffe0b2; /* Light orange background */
}

/* Tablet view */
@media (max-width: 768px) {
	.log-hour-row {
		flex-direction: column;
	}
	.log-hour-cell {
		width: 100%; /* Ensures cells take full width */
		max-width: none; /* Removes max-width restriction */
		text-align: center !important;
	}
	.log-hour-cell:before {
		content: attr(data-label);
		position: absolute;
		left: 50px;
		width: 150px; /* Adjust width if needed */
		white-space: nowrap;
		font-weight: bold;
	}
	.log-hour-cell.task {
		flex-grow: 1; /* Removes extra space for Task column */
		text-align: left !important;
	}
}

/* Mobile view */
@media (max-width: 480px) {
	.log-hour-row {
		flex-direction: column;
	}
	.log-hour-cell {
		width: 100%; /* Ensures cells take full width */
		padding: 8px; /* Reduced padding for smaller screens */
		max-width: none; /* Removes max-width restriction */
		text-align: center !important;
	}
	.log-hour-cell:before {
		left: 10px;
		width: 100px; /* Adjust width if needed */
	}
	.log-hour-cell.task {
		text-align: left !important;
	}
}

/* Increase specificity to ensure it overrides other styles */
.sidebar ul li a.active {
    color: #007bff !important; 
}

.login-background {
    background-image: url('../image/d.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .login-background {
        background-image: url('../image/t.jpg');
    }
}

@media (max-width: 480px) {
    .login-background {
        background-image: url('../image/m.jpg');
    }
}


