/* General Body Styling */
body {
    margin: 0;
    background-color: whitesmoke;
    color: #333;
    display: flex;
    justify-content: flex-start;
    height: 100vh;
    
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #333;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.back-button:hover {
    background-color: #555;
    transform: translateY(-2px);
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #000;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
}

.sidebar nav {
    flex-grow: 1;
    padding-top: 147px;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav ul li {
    padding: 15px 20px;
    transition: background-color 0.3s ease;
}

.sidebar nav ul li a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 16px;
    position: relative;
    margin-left: 0.5cm;
    transition: color 0.3s ease;
    font-weight: bold;
}

.sidebar nav ul li a i {
    margin-right: 10px;
    font-size: 18px;
}

.sidebar nav ul li a:hover {
    color: #00aaff;
}

.sidebar nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.sidebar nav ul li a:hover::after {
    width: 100%;
}

/* Active Link Styling */
.sidebar nav ul li a.active {
    color: #00aaff;
    font-weight: bold;
}

/* Main Content Styling */
.content {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding: 20px;
    background-color: whitesmoke;
}

/* Add Service Button */
.icon-btn.add-service-btn {
    background-color: #00aaff;
    color: white;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 20px;
}

.icon-btn.add-service-btn:hover {
    background-color: #008ed6;
    transform: scale(1.1);
}

/* Services Container */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Service Card Styling */
.service-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 200px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Service Title */
.service-card h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Service Description */
.service-card p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Icons for Edit and Delete */
.service-card .icon-btn {
    position: absolute;
    top: 10px;
    width: 40px;
    height: 40px;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Edit Button */
.service-card .icon-btn.edit-icon {
    right: 60px;
    background-color: #4CAF50;
    font-size: 18px;
    color: white;
}

.service-card .icon-btn.edit-icon:hover {
    background-color: #3e8e41;
}

/* Delete Button */
.service-card .icon-btn.delete-icon {
    right: 10px;
    background-color: #f44336;
    font-size: 18px;
    color: white;
}

.service-card .icon-btn.delete-icon:hover {
    background-color: #d32f2f;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 450px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #f44336;
}

#service-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#service-form label {
    font-weight: bold;
}

#service-form input {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

#submit-btn {
    background-color: #00aaff;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#submit-btn:hover {
    background-color: #008ed6;
    transform: scale(1.05);
}

/* Modal Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
