

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    font-family: "Poppins", sans-serif;
    background-color: #fafafa;
    margin: 0;
    padding: 0;
    font-size: 14px;
}
img{
    max-width: 100%;
}
.topheader {
    width: calc(94% - 200px);
    background-color: #fff;
    margin-left: 220px;
    border-radius: 10px;
    padding: 13px 20px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.profileicon{
 width: 30px;
 height: 30px;
 background: #ccc;
 border-radius: 100px;
 overflow: hidden;
}
.profileicon img{
    width: 30px;
    height: 30px;
}
.headerright{
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: center;
}
.logoblock {
    padding: 0;
    font-size: 0;
    font-weight: 400;
    color: #2ADEF6;
    border-radius: 100px;
    padding: 8px 10px;
    margin: 0 10px;
}

.topheader h1{
    margin: 0;
    font-size: 22px;
}
a, button {
    font-family: "Poppins", sans-serif;     font-size: 14px;
}
input{
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;     font-size: 14px;
}
.logoblock img{
    width: 100%;

}
.logoblock{
    background: #fff;
}
header {
    background-color: #3B1A6C;
    color: white;
    padding: 0;
    display: flex;

    flex-direction: column;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 0;
}

h2 {
    margin: 0;
}

.login-container,
.dashboard-content,
.blog-list,
.blog-form {
    /* max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
}
.dashboard-content{
    text-align: center;
}
.dashboard-content h3{
    font-size: 25px;
}
.dashboard-content img{
    width: 100%;

}
.loginbg {
    background: url(../images/bglogin.jpg);
    background-size: cover;
}
main {
    padding: 10px 10px 10px 31px;
    border-radius: 10px;
    width: calc(100% - 200px);
    margin-left: 190px;
    margin-top: 30px;
    min-height: 500px;
    box-sizing: border-box;
}
.blog-form {
    padding: 20px;
}
.logo{
    width: 200px;
    margin:  auto;
}
.text-center{
    text-align: center;
}

.login-container h2{
    color: #230b47;
    text-align: center;
    margin: 15px ;
}
.login-container{
    max-width: 320px;
    margin: 50px auto;
    padding: 70px 30px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    height: 100%;

}
.form-group {
    margin-bottom: 15px;
}

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

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button.btn {
    background-color: #3B1A6C;
    color: white;
    border: none;
    padding: 15px 15px;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
    font-size: 15px;
}

button.blogbtn {
    background-color: #3B1A6C;
    color: white;
    border: none;
    padding: 15px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 15px;
}

button.btn:hover {
    background-color: #230b47;
}

.login-container {

}
.error {
    color: red;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    background-color: #f9f9f9;
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
}

ul li a {
    text-decoration: none;
    color: #007bff;
    margin-right: 10px;
}
.footermain {
    text-align: center;
    padding-left: 250px;
}

.leftnav{
    display: flex;
    flex-direction: column;
}

.sidenav {
    height: 100%;
    width: 200px;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #3B1A6C;
    overflow-x: hidden;
    padding-top: 20px;
}
  
  .sidenav a {
    padding: 17px 20px;
    text-decoration: none;
    font-size: 15px;
    color: #fff;
    display: block;
    text-transform: capitalize;
    border-radius: 0 0 0 0;
}
  
  .sidenav a:hover {
    color: #f1f1f1;
    background: #230b47;
  }
  
  .main {
    margin-left: 160px; /* Same as the width of the sidenav */
    font-size: 28px; /* Increased text to enable scrolling */
    padding: 0px 10px;
   
  }
  
  @media screen and (max-height: 450px) {
    .sidenav {padding-top: 15px;}
    .sidenav a {font-size: 18px;}
  }

  .dashboard_flex{
    display: flex;
    justify-content: space-between;
    gap: 30px;
}
.dashcol {
    width: 100%;
    box-shadow: 1px 3px 5px 5px #eee;
    padding: 10px;
    border-radius: 5px;
    min-height: 145px;
    background: #fff;
}

.blog-item{
    width: 400px;  
    box-shadow: 1px 3px 5px 5px #eee;
    padding: 10px;
    border-radius: 5px;
    min-height: 145px;
    background: #fff;
}

.blog-actions{
    display: flex;
    gap: 10px;
}
.dashboard-content {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
}
.blog-actions .blogaction1{


 background: #2ADEF6;
 color: #fff;
 padding: 5px 20px;
 border: none;

 color: #230b47;
 text-decoration: none;
 font-weight: 400;
 border-radius: 5px;
}
.blogdelete{
    background: #230b47;
    color: #fff;
    padding: 5px 20px;
    display: inline;
    text-decoration: none;
    border-radius: 5px;   
    border: none;
}
.blog-item h2 a{
    color: #230b47;
    text-decoration: none;
}
.blog-form {
    box-shadow: 1px 3px 5px 5px #eee;
    padding: 20px;
    border-radius: 5px;
    min-height: 145px;
    background: #fff;
}
.tableblock
{
    background: #fff;
    padding: 10px;
    width: 100%;
    box-shadow: 0px 1px 4px 5px #eee;
    border-radius: 10px;
    
}
.tableblock th{
    text-align: left;
    background: #fafafa;
    padding: 10px;
}
.tableblock td{
    padding: 10px;
}
.tableblock td a{
    text-decoration: none;
    color: #230b47;
}
.tableblock td img{
    width: 100px;
    height: 50px;
    object-fit: cover;
}
.logout img{
    width: 24px;
}
.logout a{
    display: flex;
}
.addblog{
    text-align: right;
    padding: 5px 0;
    margin-bottom: 20px;
}
.addblog a{
    background: #3B1A6C;
    color: #fff;
    padding: 8px 20px;
    display: inline;
    text-decoration: none;
    border-radius: 5px;   
    border: none;
    display: inline;
}


/* service */

.service-form {
    padding: 20px;
}

button.servicebtn {
    background-color: #3B1A6C;
    color: white;
    border: none;
    padding: 15px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 15px;
}

.service-item{
    width: 400px;  
    box-shadow: 1px 3px 5px 5px #eee;
    padding: 10px;
    border-radius: 5px;
    min-height: 145px;
    background: #fff;
}

.service-actions{
    display: flex;
    gap: 10px;
}

.service-actions .serviceaction1{

    background: #2ADEF6;
    color: #fff;
    padding: 5px 20px;
    border: none;   
    color: #230b47;
    text-decoration: none;
    font-weight: 400;
    border-radius: 5px;

}

.servicedelete{
    background: #230b47;
    color: #fff;
    padding: 5px 20px;
    display: inline;
    text-decoration: none;
    border-radius: 5px;   
    border: none;
}
.service-item h2 a{
    color: #230b47;
    text-decoration: none;
}
.service-form {
    box-shadow: 1px 3px 5px 5px #eee;
    padding: 20px;
    border-radius: 5px;
    min-height: 145px;
    background: #fff;
}
.addservice{
    text-align: right;
    padding: 5px 0;
    margin-bottom: 20px;
}
.addservice a{
    background: #3B1A6C;
    color: #fff;
    padding: 8px 20px;
    display: inline;
    text-decoration: none;
    border-radius: 5px;   
    border: none;
    display: inline;
}

/*contact */

.contact-form {
    padding: 20px;
}

button.contactbtn {
    background-color: #3B1A6C;
    color: white;
    border: none;
    padding: 15px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 15px;
}

.contact-item{
    width: 400px;  
    box-shadow: 1px 3px 5px 5px #eee;
    padding: 10px;
    border-radius: 5px;
    min-height: 145px;
    background: #fff;
}

.contact-actions{
    display: flex;
    gap: 10px;
}

.contact-actions .contactaction1{

    background: #2ADEF6;
    color: #fff;
    padding: 5px 20px;
    border: none;   
    color: #230b47;
    text-decoration: none;
    font-weight: 400;
    border-radius: 5px;

}

.contactdelete{
    background: #230b47;
    color: #fff;
    padding: 5px 20px;
    display: inline;
    text-decoration: none;
    border-radius: 5px;   
    border: none;
}
.contact-item h2 a{
    color: #230b47;
    text-decoration: none;
}
.contact-form {
    box-shadow: 1px 3px 5px 5px #eee;
    padding: 20px;
    border-radius: 5px;
    min-height: 145px;
    background: #fff;
}
.addcontact{
    text-align: right;
    padding: 5px 0;
    margin-bottom: 20px;
}
.addcontact a{
    background: #3B1A6C;
    color: #fff;
    padding: 8px 20px;
    display: inline;
    text-decoration: none;
    border-radius: 5px;   
    border: none;
    display: inline;
}

/*banner*/

.banner-form {
    padding: 20px;
}

button.bannerbtn {
    background-color: #3B1A6C;
    color: white;
    border: none;
    padding: 15px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 15px;
}

.banner-item{
    width: 400px;  
    box-shadow: 1px 3px 5px 5px #eee;
    padding: 10px;
    border-radius: 5px;
    min-height: 145px;
    background: #fff;
}

.banner-actions{
    display: flex;
    gap: 10px;
}

.banner-actions .banneraction1{

    background: #2ADEF6;
    color: #fff;
    padding: 5px 20px;
    border: none;   
    color: #230b47;
    text-decoration: none;
    font-weight: 400;
    border-radius: 5px;

}

.bannerdelete{
    background: #230b47;
    color: #fff;
    padding: 5px 20px;
    display: inline;
    text-decoration: none;
    border-radius: 5px;   
    border: none;
}
.banner-item h2 a{
    color: #230b47;
    text-decoration: none;
}
.banner-form {
    box-shadow: 1px 3px 5px 5px #eee;
    padding: 20px;
    border-radius: 5px;
    min-height: 145px;
    background: #fff;
}
.addbanner{
    text-align: right;
    padding: 5px 0;
    margin-bottom: 20px;
}
.addbanner a{
    background: #3B1A6C;
    color: #fff;
    padding: 8px 20px;
    display: inline;
    text-decoration: none;
    border-radius: 5px;   
    border: none;
    display: inline;
}

/* Base Alert Styles */
.alert {
    padding: 15px;          /* Add padding for spacing */
    border-radius: 5px;    /* Rounded corners */
    margin: 15px 0;        /* Space between alerts and other elements */
    font-size: 16px;       /* Font size */
}

/* Success Alert */
.alert-success {
    background-color: #d4edda; /* Light green background */
    color: #155724;            /* Dark green text */
    border: 1px solid #c3e6cb; /* Light green border */
}

/* Failure Alert */
.alert-danger {
    background-color: #f8d7da; /* Light red background */
    color: #721c24;            /* Dark red text */
    border: 1px solid #f5c6cb; /* Light red border */
}

/* Optional: Add hover effect */
.alert:hover {
    opacity: 0.9; /* Slightly fade when hovered */
}

.image-preview-container {
    position: relative;
    display: inline-block;
}

.delete-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: red;
    color: white;
    border: none;
    cursor: pointer;
    padding: 2px 5px;
    font-size: 16px;
    border-radius: 50%;
}




