
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}


.admin-container {
  display: flex;
  min-height: 100vh;
  background: #f5f7fb;
}

.login-form {
  max-width: 400px;
  margin: 80px auto;
  background: white;
  padding: 70px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.login-form h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #17304f;
}

.login-form input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 1px solid #dce3ec;
  border-radius: 12px;
  background: #fbfcff;
  font-size: 14px;
  transition: 0.3s ease;
}

.login-form input:focus {
  border-color: #4d7db5;
  box-shadow: 0 0 0 4px rgba(77,125,181,0.12);
}

.sidebar {
  width: 260px;
  background: #17304f;
  color: white;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
}

.sidebar .logo {
  font-size: 24px;
  margin-bottom: 30px;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
}


.sidebar nav a {
  display: block;
  padding: 12px 15px;
  margin-bottom: 10px;
  text-decoration: none;
  color: #cfd8e3;
  border-radius: 8px;
  transition: 0.3s;
  font-weight: 500;
  font-size: 14px;
}


.sidebar nav a:hover {
  background: #4d7db5;
  color: white;
}


.sidebar .logout {
  
  background: rgba(255,255,255,0.1);
}


.main-content {
  flex: 1;
  padding: 20px 30px;
  margin-left: 20px;
}


.main-content h1 {
  color: #17304f;
  margin-bottom: 15px;
    font-size: 30px;
    margin-left: 30px;
  font-family: 'Playfair Display', serif;

}




.table-card {
  background: white;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}


.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}


.admin-table thead {
  background: #17304f;
  color: white;
}


.admin-table th,
.admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #eee;
}


.admin-table tbody tr:hover {
  background: #f5f8fc;
}


.actions a {
  margin-right: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}


.actions .edit {
  color: #4d7db5;
}


.actions .delete {
  color: #e74c3c;
}


.sidebar nav a.active {
  background: #4d7db5;
  color: white;
}

.table-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
}

.color-badge {

  display: inline-block;

  padding: 6px 12px;

  margin: 4px;

  border-radius: 30px;

  background: #e8f1fb;

  color: #17304f;

  font-size: 13px;

  font-weight: 600;
}
.add-color-btn {

  margin-top: 12px;

  padding: 12px 18px;

  border: none;

  border-radius: 12px;

  background: #e8f1fb;

  color: #17304f;

  cursor: pointer;

  font-weight: 600;

  transition: 0.3s ease;
}

.add-color-btn:hover {

  background: #d7e8fb;
}



.form-card {

  background: white;

  padding: 30px;

  border-radius: 18px;

  box-shadow:
  0 10px 30px rgba(0,0,0,0.06);

  max-width: 1000px;
}



.form-grid {

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 20px;
}



.full {

  grid-column: 1 / -1;
}



.input-group {

  display: flex;

  flex-direction: column;
}

.input-group label {

  margin-bottom: 10px;

  font-size: 14px;

  font-weight: 600;

  color: #17304f;
}



.input-group input,
.input-group select,
.input-group textarea {

  padding: 14px 16px;

  border-radius: 12px;

  border: 1px solid #dce3ec;

  background: #fbfcff;

  font-size: 14px;

  transition: 0.3s ease;

  outline: none;
}



.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {

  border-color: #4d7db5;

  box-shadow:
  0 0 0 4px rgba(77,125,181,0.12);
}



textarea {

  min-height: 130px;

  resize: vertical;
}



input[type="file"] {

  background: white;

  padding: 12px;
}



.btn-primary {

  margin-top: 25px;

  padding: 15px 22px;

  border: none;

  border-radius: 14px;

  background: #17304f;

  color: white;

  font-size: 15px;

  font-weight: 600;

  cursor: pointer;

  transition: 0.3s ease;
}

.btn-primary:hover {

  background: #4d7db5;

  transform: translateY(-2px);
}



#color-container {

  display: flex;

  flex-direction: column;

  gap: 10px;
}







.admin-form {

  flex: 1;

  background: #ffffff;

  margin-left: 20px;

  padding: 35px;

  border-radius: 24px;

  box-shadow:
  0 15px 40px rgba(0,0,0,0.06);

  max-width: 1000px;

}



.admin-form h2 {

  font-size: 30px;

  color: #17304f;

  margin-bottom: 25px;
  font-family: 'Playfair Display', serif;

}

.admin-form h1 {

  font-size: 30px;

  color: #17304f;

  margin-bottom: 25px;
  font-family: 'Playfair Display', serif;

}


.admin-form h4 {

  margin-top: 30px;

  margin-bottom: 15px;

  color: #17304f;

  font-size: 18px;

}



.admin-form input,
.admin-form textarea,
.admin-form select {

  width: 100%;

  padding: 14px 16px;

  margin-bottom: 18px;

  border:
  1px solid #dce4ef;

  border-radius: 14px;

  background: #f8fbff;

  font-size: 15px;

  transition: 0.3s ease;

}

.admin-form label{
   margin-bottom: 10px;

  font-size: 14px;

  font-weight: 600;

  color: #17304f;
}



.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {

  outline: none;

  border-color: #4d7db5;

  background: #ffffff;

  box-shadow:
  0 0 0 4px rgba(77,125,181,0.12);

}



.admin-form textarea {

  min-height: 140px;

  resize: vertical;

}



.admin-form input[type="file"] {

  padding: 14px;

  background: #eef4fb;

  cursor: pointer;

}



.admin-form button {

  border: none;

  padding: 14px 22px;

  border-radius: 14px;

  cursor: pointer;

  font-weight: 600;

  transition: 0.3s ease;

}



.admin-form button[type="submit"] {

  background: #17304f;

  color: white;

  margin-top: 25px;

}

.admin-form button[type="submit"]:hover {

  background: #4d7db5;

  transform: translateY(-2px);

}



.admin-form button[type="button"] {

  background: #e8f1fb;

  color: #17304f;

  margin-top: 5px;

}

.admin-form button[type="button"]:hover {

  background: #d8e8fa;

}



#color-container {

  display: flex;

  flex-direction: column;

  gap: 12px;

}



.image-grid {

  display: grid;

  grid-template-columns:
  repeat(auto-fill, minmax(140px, 1fr));

  gap: 18px;

  margin-top: 15px;

}



.img-box {

  background: #f8fbff;

  border-radius: 18px;

  padding: 12px;

  text-align: center;

  border:
  1px solid #e2ebf5;

  transition: 0.3s ease;

}

.img-box:hover {

  transform: translateY(-3px);

  box-shadow:
  0 10px 25px rgba(0,0,0,0.05);

}



.img-box img {

  width: 100%;

  height: 120px;

  object-fit: cover;

  border-radius: 14px;

  margin-bottom: 10px;

}



.img-box a {

  display: inline-block;

  padding: 8px 14px;

  border-radius: 10px;

  background: #ffe5e5;

  color: #d63031;

  text-decoration: none;

  font-size: 13px;

  font-weight: 600;

  transition: 0.3s ease;

}

.img-box a:hover {

  background: #ffd4d4;

}






.no-offers {
    text-align: center;
    padding: 50px 20px;
    color: #555;
}

.no-offers h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.no-offers p {
    font-size: 16px;
    opacity: 0.8;
}

.form-cards .form{
    width: 450px;
    margin: 40px auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}


.form-cards h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 22px;
}


.form-cards form label {
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    display: block;
    color: #444;
}


.form-cards form input,
.form-cards form  select,
.form-cards form  textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: 0.3s ease;
    box-sizing: border-box;
}


input:focus,
select:focus,
textarea:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 6px rgba(74,144,226,0.3);
}


textarea {
    resize: none;
    height: 90px;
}


button {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #4a90e2;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

button:hover {
    background: #357ABD;
}


.small-row {
    display: flex;
    gap: 10px;
}

.small-row > div {
    flex: 1;
}

.form-card{

    background:white;

    max-width:600px;

    padding:30px;

    border-radius:15px;

    box-shadow:0 5px 20px rgba(0,0,0,0.08);

}

.form-card form{

    display:flex;

    flex-direction:column;

    gap:15px;

}

.form-card label{

    font-weight:600;

    color:#17304f;

}

.form-card input{

    padding:12px;

    border:1px solid #ddd;

    border-radius:8px;

}

.form-card button{

    padding:12px;

    background:#17304f;

    color:white;

    border:none;

    border-radius:8px;

    cursor:pointer;

}

.form-card button:hover{

    background:#24476f;

}

.success-message{

    background:#e8f8ee;

    color:#198754;

    padding:12px;

    border-radius:8px;

    margin-bottom:15px;

}

.pagination{
    margin-top:20px;
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.page-btn{
    padding:8px 14px;
    background:#17304f;
    color:white;
    text-decoration:none;
    border-radius:6px;
    font-size:14px;
}

.page-btn:hover{
    opacity:0.9;
}

.active-page{
    background:#28a745;
}


.menu-toggle{

    display:none;


}


@media (max-width: 992px) {

    .admin-container{
        flex-direction: column;
    }

    .sidebar{
        width: 100%;
        min-height: auto;
        padding: 20px;
    }

    .sidebar nav{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .sidebar nav a{
        margin: 0;
        padding: 10px 15px;
    }

    .main-content{
        margin-left: 0;
        padding: 25px;
    }

    .admin-form{
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }

    .form-card{
        width: 100%;
        max-width: 100%;
    }

    .login-form{
        width: 90%;
        max-width: 450px;
        padding: 40px;
    }

    .table-card{
        overflow-x: auto;
    }

    .admin-table{
        min-width: 900px;
    }

    .image-grid{
        grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
    }

}


@media (max-width:768px){

    .sidebar{
        padding:20px;
    }

    .sidebar .logo{
        text-align:center;
        margin-bottom:20px;
    }

    .sidebar nav{
        display:flex;
        flex-wrap:wrap;
        justify-content:center;
        gap:10px;
    }

    .sidebar nav a{
        width:auto;
        padding:10px 16px;
        text-align:center;
    }

    .main-content{
        padding:20px;
    }

    .main-content h1{
        font-size:26px;
        text-align:center;
        margin-left:0;
    }

    .admin-form h1,
    .admin-form h2{
        font-size:26px;
        text-align:center;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

    .full{
        grid-column:auto;
    }

    .small-row{
        flex-direction:column;
    }

    .admin-form{
        padding:25px;
    }

    .form-card{
        padding:25px;
    }

    .login-form{
        width:95%;
        padding:35px;
    }

    .image-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .table-card{
        overflow-x:auto;
    }

    .admin-table{
        min-width:800px;
    }

}


@media (max-width:480px){
 .menu-toggle{

        display:flex;
        justify-content:center;
        align-items:center;

        position:fixed;
        top:1px;
        left:10px;

        width:30px;
        height:30px;

        border:none;
        border-radius:10px;

        background:#17304f;
        color:white;

        font-size:20px;

        cursor:pointer;

        box-shadow:0 4px 10px rgba(0,0,0,.2);

        z-index:1001;

    }

    .menu-toggle:hover{

        background:#4d7db5;

    }


.sidebar{

    position:fixed;

    top:0;

    left:-270px;

    width:260px;

    height:100vh;

    transition:.3s ease;

    z-index:1000;

}
.sidebar.active{

    left:0;

}
    .sidebar .logo{
        font-size:22px;
        text-align:center;
    }

    .sidebar nav{
        flex-direction:column;
    }

    .sidebar nav a{
        width:100%;
        text-align:center;
        margin-bottom:8px;
    }

    .main-content{
        padding:15px;
    }

    .main-content h1{
        font-size:22px;
        margin-left:0;
        text-align:center;
    }

    .admin-form{
        padding:18px;
        border-radius:15px;
    }

    .admin-form h1,
    .admin-form h2{
        font-size:22px;
    }

    .admin-form input,
    .admin-form select,
    .admin-form textarea{
        font-size:14px;
        padding:12px;
    }

    .btn-primary,
    button{
        width:100%;
        max-width:none;
    }

    .login-form{
        width:95%;
        padding:25px;
        margin:30px auto;
    }

    .image-grid{
        grid-template-columns:1fr;
    }

    .img-box img{
        height:180px;
    }

    .table-img{
        width:60px;
        height:60px;
    }

    .table-card{
        overflow-x:auto;
    }

    .admin-table{
        min-width:700px;
    }

}



@media (min-width:1200px){

    .main-content{
        max-width:1500px;
    }

    .admin-form{
        max-width:1100px;
    }

    .form-card{
        max-width:1100px;
    }

}