/* RESET */
*{
 margin:0;
 padding:0;
 box-sizing:border-box;
 font-family: 'Segoe UI', Arial, sans-serif;
}

/* BODY */
body{

    margin:0;

    padding:0;

    font-family:Arial,sans-serif;

    background:
    linear-gradient(
        rgba(255,255,255,0.94),
        rgba(255,255,255,0.94)
    ),
    url('bg-pattern.png');

    background-size:300px;

    background-repeat:repeat;

    color:#222;
}

/* HEADER */
header{
 background:#ffffff;
 padding:15px;
 text-align:center;
 box-shadow:0 2px 6px rgba(0,0,0,0.05);
}

.banner{
 width:100%;
 max-height:300px;
 object-fit:cover;
 border-radius:8px;
}

/* CONTAINER */
.container{
 text-align:center;
 padding:40px 20px;
}

/* BUTTONS */
button{
 padding:12px 20px;
 margin:10px;
 border:none;
 background:#4a6cf7;
 color:#fff;
 border-radius:8px;
 cursor:pointer;
 transition:0.3s;
 font-size:15px;
}

button:hover{
 background:#3b55d1;
}

/* FOOTER */
footer{
 background:#ffffff;
 padding:20px;
 text-align:center;
 margin-top:40px;
 font-size:14px;
 box-shadow:0 -2px 6px rgba(0,0,0,0.05);
}

/* CARDS (Dashboard) */
.card{
 background:#ffffff;
 padding:25px;
 margin:20px auto;
 width:90%;
 max-width:350px;
 border-radius:12px;
 box-shadow:0 8px 20px rgba(0,0,0,0.08);
 text-align:center;
}

/* POPUP BACKGROUND */
.popup{
 display:none;
 position:fixed;
 top:0;
 left:0;
 width:100%;
 height:100%;
 background:rgba(0,0,0,0.6);
 z-index:999;
}

/* POPUP BOX */
.popup-content{
 background:#ffffff;
 width:90%;
 max-width:350px;
 margin:80px auto;
 padding:20px;
 border-radius:12px;
 position:relative;
 box-shadow:0 10px 30px rgba(0,0,0,0.2);
 animation:fadeIn 0.3s ease-in-out;
}

/* CLOSE BUTTON */
.close{
 position:absolute;
 top:10px;
 right:15px;
 font-size:18px;
 cursor:pointer;
}

/* INPUT FIELDS */
input, textarea{
 width:100%;
 padding:10px;
 margin:8px 0;
 border:1px solid #ccc;
 border-radius:6px;
 font-size:14px;
 outline:none;
}

/* TEXTAREA */
textarea{
 resize:none;
 height:80px;
}

/* INPUT FOCUS */
input:focus, textarea:focus{
 border-color:#4a6cf7;
}

/* LINKS */
a{
 text-decoration:none;
 color:#4a6cf7;
}

a:hover{
 text-decoration:underline;
}

/* ANIMATION */
@keyframes fadeIn{
 from{opacity:0; transform:translateY(-20px);}
 to{opacity:1; transform:translateY(0);}
}

/* RESPONSIVE */
@media(max-width:768px){
 .container{
  padding:30px 15px;
 }

 .card{
  width:95%;
 }

 .popup-content{
  margin:60px auto;
 }
}

/* TOPBAR */
.topbar{
 display:flex;
 justify-content:space-between;
 align-items:center;
 padding:15px 20px;
 background:#ffffff;
 box-shadow:0 2px 6px rgba(0,0,0,0.05);
}

.topbar a{
 text-decoration:none;
 color:#333;
 font-weight:500;
}

.logout-btn{
 background:#ff4d4d;
 color:#fff !important;
 padding:8px 15px;
 border-radius:6px;
}

.logout-btn:hover{
 background:#e60000;
}

/* SCROLLABLE POPUP CONTENT */
.popup-content{
 max-height:80vh;
 overflow-y:auto;
}

/* BANNER CONTAINER */
.banner-container{
 position: relative;
 width: 100%;
 height: 320px;
 overflow: hidden;
}

/* IMAGE */
.banner-img{
 width: 100%;
 height: 100%;
 object-fit: cover;
}

/* OVERLAY (for better text visibility) */
.banner-container::after{
 content: "";
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
}

/* TEXT */
.banner-text{
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 text-align: center;
 color: #fff;
 z-index: 2;
 width: 90%;
}

.banner-text h1{
 font-size: 32px;
 margin-bottom: 10px;
}

.banner-text p{
 font-size: 16px;
}

/* ================= MOBILE ================= */
@media (max-width: 768px){

 .banner-container{
  height: 220px;
 }

 .banner-text h1{
  font-size: 20px;
 }

 .banner-text p{
  font-size: 13px;
 }

}

/* ================= SMALL MOBILE ================= */
@media (max-width: 480px){

 .banner-container{
  height: 180px;
 }

 .banner-text h1{
  font-size: 16px;
 }

 .banner-text p{
  font-size: 12px;
 }

}

/* ===== PREMIUM BACKGROUND ===== */
body{
 background: linear-gradient(135deg, #eef2ff, #f8fbff);
 color:#222;
 min-height:100vh;
}

/* BACKGROUND WITH PATTERN */
body{
 background: linear-gradient(135deg, #eef2ff, #f8fbff);
 background-image: url('../assets/bg-pattern.png');
 background-repeat: repeat;
 background-size: 300px;
}

/* ===== PREMIUM FOOTER ===== */
.footer{
 background: linear-gradient(135deg, #1e293b, #0f172a);
 color:#fff;
 text-align:center;
 padding:40px 20px;
 margin-top:50px;
}

.footer-content h3{
 font-size:22px;
 margin-bottom:10px;
}

.footer-content p{
 font-size:14px;
 opacity:0.8;
 margin-bottom:15px;
}

.footer-links{
 margin:15px 0;
}

.footer-links a{
 color:#cbd5f5;
 margin:0 10px;
 text-decoration:none;
 font-size:14px;
 transition:0.3s;
}

.footer-links a:hover{
 color:#fff;
 text-decoration:underline;
}

.footer .copyright{
 font-size:13px;
 opacity:0.6;
 margin-top:15px;
}

.popup-content input[type="number"],
.popup-content select{
 width:100%;
 padding:10px;
 border:1px solid #ccc;
 border-radius:6px;
}

.card p{
 background:#f5f7ff;
 padding:10px;
 border-radius:8px;
 margin-top:5px;
}

.popup-content input[type="file"]{
    padding:8px;
}

.profile-img-large{
    width:100px;
    height:100px;
    border-radius:50%;
    object-fit:cover;
    margin-bottom:10px;
}

.popup-content form input{
    width:100%;
    padding:10px;
    margin:8px 0;
}