@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/******** RESPONSIVE **********/

/* Responsive styles */
@media screen and (max-width: 400px) {
    div.container {
        width: 87%;
        margin:0 auto;
    }
}

@media screen and (max-width: 600px) {
    h1 {
        font-size: 18px;
    }

    input[type="text"],
    textarea,
    input[type="date"] {
        padding: 8px;
    }

    button[type="submit"] {
        padding: 8px;
    }
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .entry {
        padding: 10px;
    }
}

@media screen and (max-width: 400px) {

    .date {
        font-size: 25px;
    }

    .content {
        font-size: 25px;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f7fc;
    color: #333;
    padding: 20px;
    line-height: 1.6;
    margin: 0;
}

/* Login */

.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
.login-container h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}
.login-container .form-group {
    margin-bottom: 15px;
}
.login-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
.login-container button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.login-container button[type="submit"]:hover {
    background-color: #0056b3;
}
.login-container .error {
    color: #ff0000;
    margin-bottom: 15px;
    text-align: center;
}

/* Modern Navigation Bar Styling */
nav {
    background-color: #f4f4f4; /* Light grey background */
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15); /* Subtle shadow for depth */
    font-family: 'Arial', sans-serif; /* Modern font */
    margin-bottom:20px;
}

nav a {
    float: left;
    display: block;
    color: #333; /* Dark grey text */
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effects */
}

nav a:hover, nav a.active {
    background-color: #008CBA; /* Blue background on hover */
    color: white; /* White text on hover */
    border-radius: 4px; /* Rounded corners on hover */
}

.nav-right {
    float: right;
    display: flex;
    align-items: center;
}
.nav-icon {
    width: 24px;
    height: 24px;
    margin-left: 15px;
    transition: transform 0.2s;
}
.nav-icon:hover {
    transform: scale(1.1);
}

/* Responsive navigation bar */
@media screen and (max-width: 600px) {
    nav a {
        float: none;
        display: inline;
        padding:20px;
        line-height:40px;
        text-align: left; /* Align text to the left on smaller screens */
        width: 100%; /* Full width for each link */
        margin-top: 5px; /* Add a small top margin */
    }
}


.container {
    width: 80%;
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.entries-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.entry {
    padding: 15px;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entry:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.entry .date {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 10px;
    display: block;
}

.entry .content {
    font-size: 1.05em;
}

/*.entry .tag {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 8px;
    font-weight: 600;
    background-color: #eef4fd;
    color: #4a90e2;
    border-radius: 15px;
    font-size: 0.9em;
}*/

.tags {
    margin-top: 10px;
}

.tag {
    display: inline-block;
	background-color: #eef4fd;
    color: #4a90e2;
    padding: 3px 8px;
    margin-right: 10px;
    border-radius: 10px;
    font-size: 0.8em;
    cursor:pointer;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.tag-link {
    display: inline-block;
    border: 1px solid #4a90e2;
    color: #4a90e2;
    padding: 3px 8px;
    margin-right: 10px;
    border-radius: 10px;
    font-size: 0.8em;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}


.tag:hover {
    background-color: #e0e0e0;
}

#filter-bar {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    align-items: left;
    gap: 5px;
    margin-bottom:20px;

}

#filter-bar h6 {
    color: #a0a0a0;
    font-weight:normal;
    margin:0;
    padding-right:20px;
    line-height:30px;
}

/* Modern and stylish button design */
.back-to-home-btn {
    display: inline-block;
    padding: 8px 15px; /* Compact padding */
    margin: 10px 0;
    background-color: #555; /* Dark grey background */
    color: white; /* White text */
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    width:150px;
}

.back-to-home-btn:hover {
    background-color: #666; /* Slightly lighter shade on hover */
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3); /* Slightly bigger shadow on hover */
    transform: translateY(-1px); /* Small movement for interactive feedback */
}



/***** ADD ENTRIES ********/

/* Style for the tags container */
.form-group .tags-container {
    display: flex; /* Use Flexbox */
    flex-wrap: wrap; /* Allow wrapping to the next line */
    gap: 10px; /* Space between tags */
}

/* Style for individual tag */
.form-group .tag-checkbox {
    display: flex; /* Flex display for checkbox and label */
    align-items: center; /* Align items vertically */
}

/* Style for new tags input */
.form-group .new-tags-input {
    display: block; /* Separate line for new tags input */
    margin-top: 10px; /* Spacing above the new tags input */
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group select,
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.form-group input[type="time"],
.form-group input[type="number"]{
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

textarea {
    resize: vertical;
}

#trousersFields .form-group label, #newbornFields .form-group label {
    display:inline;
    font-weight:normal;
}

button, .form-group input[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover, .form-group input[type="submit"]:hover {
    background-color: #0056b3;
}

/****** INFO BLOCK ******/

.info-block {
    padding: 10px 15px;
    margin: 15px 0;
    background-color: #ccffcc; /* Light green background */
    border: 1px solid #33cc33; /* Darker green border */
    border-radius: 5px;
    color: #006600;
    text-align: center;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

/* Class to make the block disappear */
.hidden {
    opacity: 0;
    visibility: hidden;
}


/******** EDIT / DELETE ENTRIES *********/

.edit-btn, .delete-btn {
    margin: 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.edit-btn {
    background-color: #4CAF50; /* Green */
    color: white;
}

.delete-btn {
    background-color: #f44336; /* Red */
    color: white;
}

.icon-link {
    margin-left: 10px;
    vertical-align: middle;
}

.icon {
    height: 20px; /* Adjust size as needed */
    width: 20px;  /* Adjust size as needed */
    fill: currentColor;
}

.pen-icon {
    color: green; /* Color for the edit icon */
}

.bin-icon {
    color: red; /* Color for the delete icon */
}