/* Modern Admin Styles */
:root {
    --primary: #08ae90;
    --primary-dark: #056953;
    --primary-light: #0bdab4;
    --gradient-primary: linear-gradient(135deg, #08ae90 0%, #0bdab4 100%);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(8, 174, 144, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-md: 12px;
    --radius-lg: 20px;
}

body {
    font-family: "Raleway", sans-serif;
    margin: 0;
    padding: 0;
    background: #0a0a0a;
    background-image: 
        radial-gradient(at 0% 0%, rgba(8, 174, 144, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(11, 218, 180, 0.05) 0px, transparent 50%);
    color: #fefefe;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, rgba(8, 174, 144, 0.1) 0%, rgba(11, 218, 180, 0.05) 100%);
    backdrop-filter: blur(20px);
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    border-bottom: 1px solid rgba(11, 218, 180, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #0bdab4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

p {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
/* Modern Hamburger Menu */
.hamburger {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 1000;
    background: rgba(8, 174, 144, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(11, 218, 180, 0.2);
    border-radius: 12px;
    padding: 12px;
    transition: var(--transition);
}

.hamburger:hover {
    background: rgba(8, 174, 144, 0.2);
    border-color: rgba(11, 218, 180, 0.4);
    transform: scale(1.05);
}
  
.hamburger div {
    width: 24px;
    height: 2px;
    background-color: var(--primary-light);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}
  
  /* Modern Menu */
  .menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 40%;
    min-width: 280px;
    max-width: 400px;
    height: 100%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-left: 1px solid rgba(11, 218, 180, 0.1);
    color: white;
    z-index: 999;
    padding: 80px 40px 40px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
  
  .menu ul {
    list-style: none;
  }
  
  .menu li {
    margin: 20px 0;
  }
  
  .menu a {
    position: relative;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: 400;
    transition: var(--transition);
    font-family: "Raleway", sans-serif;
    display: block;
    padding: 12px 0;
    border-radius: var(--radius-sm);
    padding-left: 16px;
    margin-left: -16px;
  }

  .menu a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 0 2px 2px 0;
    transition: var(--transition);
  }

  .menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
  }
  
  .menu a:hover {
    color: var(--primary-light);
    background: rgba(8, 174, 144, 0.1);
    padding-left: 20px;
    margin-left: -20px;
  }

  .menu a:hover::before {
    height: 60%;
  }
  
  .menu a:hover::after {
    width: 100%;
  }
  
  /* Show menu when active */
  .menu.active {
    display: block;
  }
  
  .hamburger.active div:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active div:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active div:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

header h1 {
    margin: 0;
    font-family: "Raleway",sans-serif;
}

main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}

h2 {
    margin-top: 20px;
    color: #444;
    font-family: "Raleway",sans-serif;
}

.form-section, .articles-section {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(11, 218, 180, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.form-section h2, .articles-section h2 {
    color: #fff;
    margin-bottom: 24px;
    font-size: 1.8rem;
    font-weight: 600;
}

.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.articles-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(24, 24, 24, 0.9);
    border: 1px solid rgba(88, 86, 86, 0.6);
    border-radius: 24px;
    flex: 1;
    max-width: 400px;
}

.articles-search i {
    color: rgba(255, 255, 255, 0.7);
}

.articles-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    font-family: "Raleway", sans-serif;
    font-size: 0.95rem;
}

.articles-search input::placeholder {
    color: rgba(200, 200, 200, 0.7);
}

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

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

input[type="text"], input[type="link"], select, textarea {
    width: 100%;
    padding: 12px 16px;
    margin: 8px 0;
    border: 1px solid rgba(88, 86, 86, 0.6);
    border-radius: var(--radius-md);
    font-family: "Raleway", sans-serif;
    background: rgba(24, 24, 24, 0.9);
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
}

input[type="text"]:focus, input[type="link"]:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(11, 218, 180, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

/* File Input Styling */
.file-input-wrapper {
    position: relative;
    margin: 8px 0;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: rgba(8, 174, 144, 0.1);
    border: 2px dashed rgba(11, 218, 180, 0.4);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.9) !important;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.file-input-label span,
.file-input-label i {
    color: rgba(255, 255, 255, 0.9) !important;
}

.file-input-label:hover {
    background: rgba(8, 174, 144, 0.2);
    border-color: var(--primary-light);
    color: #fff !important;
}

.file-input-label:hover span,
.file-input-label:hover i {
    color: #fff !important;
}

.image-preview {
    position: relative;
    margin-top: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    max-width: 400px;
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

.remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(220, 38, 38, 0.9);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.remove-image-btn:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.1);
}

/* File Info */
.file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(24, 24, 24, 0.6);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.file-info i {
    font-size: 0.85rem;
}

button[type="submit"], .upload-preview {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: "Raleway", sans-serif;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition);
    width: auto;
    display: inline-block;
    box-shadow: var(--shadow-md);
}

button[type="submit"]:hover, .upload-preview:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

span{
    background-color: #db220a;
    color: #fafafa;
    font-weight: 500;
    border: none;
    cursor: pointer;
    /* font-size: 30px; */
    font-family: "Raleway",sans-serif;
    /* left: 0; */
    /* padding-bottom: 0; */
    /* text-shadow: rgb(32, 31, 31); */
    
   

}




span:hover{
    background-color: #156938;
}


button:hover {
    background-color: #043d2d;
}

#articlesList {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 30px;
}

.article-item {
    background: rgba(46, 45, 45, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(88, 86, 86, 0.3);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    transition: var(--transition);
    margin-bottom: 20px;
}

.article-item:hover {
    transform: translateY(-4px);
    border-color: rgba(11, 218, 180, 0.4);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.article-item h3 {
    margin: 0 0 12px 0;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
}

.article-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 8px 0;
    line-height: 1.6;
}

.article-item a {
    color: var(--primary-light);
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
    transition: var(--transition);
}

.article-item a:hover {
    text-decoration: underline;
}

.prev-btns button {
    width: 45%;
    padding: 12px 20px;
    border: none;
    color: #fff;
    border-radius: var(--radius-md);
    display: inline-block;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-family: "Raleway", sans-serif;
}

.edit-preview {
    background: rgba(8, 174, 144, 0.8);
}

.edit-preview:hover {
    background: rgba(8, 174, 144, 1);
    transform: translateY(-2px);
}

.delete-preview {
    background: rgba(220, 38, 38, 0.8);
}

.delete-preview:hover {
    background: rgba(220, 38, 38, 1);
    transform: translateY(-2px);
}

/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.6)), 
    url(2020/Abused_\ 30X\ 40\ inches_\ Acrylic\ and\ Transfers\ on\ Canvas.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Overlay styles */
.overlay {
    /* position: fixed;
    top: 0;
    left: 0;
    width: 100%; */
    min-height: 100vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.6)), 
    url(2022/Zeruwa\ eating\ his\ cake\,\ Acrylic\ and\ Screen\ Printing\ on\ Canvas\,\ 59\ x\ 45\,\ 2022.JPG);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.overlay-content {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(11, 218, 180, 0.2);
    box-shadow: var(--shadow-lg);
}

.overlay-content h2 {
    margin-bottom: 24px;
    color: #fff;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #ffffff 0%, #0bdab4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.overlay-content input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(88, 86, 86, 0.6);
    border-radius: var(--radius-md);
    background: rgba(24, 24, 24, 0.9);
    color: #fff;
    font-family: "Raleway", sans-serif;
    font-size: 1rem;
}

.overlay-content input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(11, 218, 180, 0.1);
}

.overlay-content button {
    width: 100%;
    padding: 14px;
    border: none;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-family: "Raleway", sans-serif;
}

.overlay-content button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.error-message {
    color: #ff4444;
    font-size: 0.9rem;
    display: none;
    margin-top: 12px;
    padding: 8px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: var(--radius-md);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(11, 218, 180, 0.3);
    border-radius: var(--radius-md);
    color: #fff;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-color: rgba(34, 197, 94, 0.5);
}

.toast.error {
    border-color: rgba(220, 38, 38, 0.5);
}

.toast i {
    font-size: 1.2rem;
}

.toast.success i {
    color: #22c55e;
}

.toast.error i {
    color: #dc2626;
}

/* Main admin panel styles */
header, main, footer {
    padding: 20px;
    text-align: center;
    display: none; /* Hidden until login */
}
/* *{
    border: 1px solid black;
} */


/*  Restyling preview --Somtee */
.prev-btns{ 
    width: 100%;
    display: flex;
    justify-content: space-around;
 }

.prev-btns button{
    display: block;
    padding: 10px 0;
    width: 40%;
    border-radius: 5px;

} 

.prev-btns button:first-child {
    background-color: #0c8361;
}
.prev-btns button:last-child {
    background-color: #DB220A;
}


.upload-block {
    margin-top: 30px;
    border-radius: 6px;
    position: relative !important;
    padding: 0 10%;
    /* display: flex; */
}

.upload-preview {
    background-color: #0c8361;
    border-radius: 7px;
    padding: 15px 40px;
    width: 100%;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.upload-preview span {
    background-color: transparent;
}

.upload-btn-wrapper {
    width: 100%;
}

.check-group {
    display: flex;
    justify-content: space-evenly;
}

/* --Somtee */

.categoryGroup {
    display: none;
  }

/* Loader --somtee */

.loader {
    width: 20px;
    height: 20px;
    border: 3px dotted #FFF;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 2s linear infinite;
    padding: 0 0 0 0;
    margin: 0  0 0 0;
  }
  
  @keyframes rotation {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  } 

  @media (max-width: 600px) {
    .dropdown-content a {
    width: 60%;
    }
    .menu{
      width: 70%;
    }
  }