@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Pacifico&display=swap');

body {
    background: rgba(186, 214, 240, 0.9);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.body2 {
    background:rgba(186, 214, 240, 0.9);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.login-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 350px;
    margin: 0;
  
}

h1 {
    font-family: Arial, sans-serif;
    color: #1d74a7;
    font-size: 24px;
    text-align: center;
}


.error {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    font-weight: 600;
    color: #444;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 2px solid #1d74a7;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-button {
    background: #57a9d8;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.form-button:hover {
    background: #ff4757;
}

.custom-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    color: #555;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

.custom-select option {
    font-size: 14px;
    color: #333;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

body {
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 200px;
    background-color: #343a40;
    color: white;
    height: 100vh;
    padding: 20px 0;
    position: fixed;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    transition: background 0.3s;
}

.sidebar ul li a:hover {
    background-color: #495057;
    border-radius: 5px;
}

/* Main container */
.container {
    margin-left: 200px; /* Match sidebar width */
    padding: 20px;
    flex-grow: 1;
}



.welcome-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}

.dashboard-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}


.card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    width: 150px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.menu-button {
    position: absolute;
    top: 20px;
    left: 220px; /* Adjust according to sidebar width */
}

/* Add Item Page Styles */
.add-item-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
    margin: 80px auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Page Title */
.add-item-container h2 {
    font-family: 'Arial, sans-serif' !important;
    color: #237988;
    font-size: 26px;
    margin-bottom: 15px;
    text-align: center;
}

/* Form Group */
.form-group {
    width: 100%;
    margin-bottom: 15px;
}

label {
    font-weight: 600;
    color: #444;
    display: block;
    margin-bottom: 5px;
}

/* Input Fields */
input[type="text"], 
input[type="number"], 
select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.3s ease-in-out;
    background: #f9f9f9;
}

/* Input Focus Effect */
input:focus, select:focus {
    border-color: #237988;
    background: #fff;
    box-shadow: 0 0 5px rgba(35, 121, 136, 0.5);
    outline: none;
}

/* Submit Button */
.form-button {
    background: #237988;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: bold;
}

.form-button:hover {
    background: #ff4757;
}

/* Sidebar Links */
.sidebar a {
    display: flex;
    align-items: center;
    padding: 10px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s ease;
}

.sidebar a:hover {
    background: #6eb7fc;
    color: white;
    border-radius: 5px;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .container {
        margin-left: 0;
        padding: 10px;
    }
}
