/* GLOBAL STYLES */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 80px 0 0 0; /* space for fixed header */
    line-height: 1.6;
    color: #333;
    background: linear-gradient(120deg, #f9f9f9 60%, #e0f7fa 100%);
}

body.darkmode {
    background: #181a1b !important;
    color: #fff;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

body.darkmode h1,
body.darkmode h2,
body.darkmode h3,
body.darkmode h4,
body.darkmode h5,
body.darkmode h6,
body.darkmode p,
body.darkmode a,
body.darkmode li,
body.darkmode label,
body.darkmode input,
body.darkmode textarea,
body.darkmode .btn,
body.darkmode .partner-btn,
body.darkmode .stat h3,
body.darkmode .stat p,
body.darkmode .service-card h3,
body.darkmode .service-card p,
body.darkmode .client-card h4,
body.darkmode .client-card p,
body.darkmode .partner-card,
body.darkmode .large-monitor h3 {
    color: #fff !important;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif !important;
}

a {
    text-decoration: none;
    color: #0277bd;
    transition: color 0.3s, box-shadow 0.3s;
    position: relative;
}
a:hover, a:focus {
    color: #4CAF50;
    box-shadow: 0 2px 0 0 #4CAF50;
}
a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(.77,0,.18,1);
}
a:hover::after, a:focus::after {
    transform: scaleX(1);
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: #013C60;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

header.scrolled {
    background-color: #013C60;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: background-color 0.3s, box-shadow 0.3s;
}

header nav {
    width: 100%; /* use full width instead of max-width */
    margin: 0;
    display: flex;
    justify-content: flex-start; /* align items to start for logo positioning */
    align-items: center;
    flex-wrap: nowrap; /* prevent wrapping */
    padding: 0 2rem 0 0; /* reduce padding since we're centering */
    min-height: 80px; /* ensure consistent height */
    position: relative; /* for absolute positioning of nav links */
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    flex-shrink: 0; /* prevent shrinking */
    position: absolute; /* position absolutely for centering */
    left: 50%; /* move to center */
    transform: translateX(-50%); /* center perfectly */
}


header nav ul li a {
    color: white;
    font-weight: 600;
}

/* HEADER AVATAR */
.user-logout-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s;
}

.user-logout-link:hover .header-avatar {
    border-color: #4CAF50;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* small space between logo image and text */
    margin-right: 0; /* remove any extra space */
    margin-left: 1rem; /* minimal margin from very left edge */
    flex-shrink: 0; /* prevent logo from shrinking */
    min-width: fit-content; /* ensure logo doesn't get too small */
}

.logo h1 {
    margin: 0;
    font-size: 1.5rem; 
    color: white
}
.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50px;
}

/* HERO SECTION */
.hero {
    background: 
        linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)), /* subtle dark overlay */
        url('https://images.unsplash.com/photo-1559028012-4810f8b7c6ef?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxfDB8MXxyYW5kb218MHx8dGVjaG5vbG9neXxlbnwwfHx8fDE2OTUwNzI0ODQ&ixlib=rb-4.0.3&q=80&w=1600') 
        no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 6rem 2rem;
}


.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    background-color: #4CAF50;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background-color: #45a049;
}

body.darkmode .btn, body.darkmode .partner-btn {
    background: #0277bd;
    color: #fff;
}

body.darkmode .btn:hover, body.darkmode .partner-btn:hover {
    background: #4CAF50;
    color: #fff;
}

/* ABOUT US */
.about-us {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #ffffff;
}

.about-us h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-us p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* STATS */
.stats {
    background-color: #f4f4f4;
    padding: 4rem 2rem;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat {
    background: linear-gradient(135deg, #e0f7fa 60%, #b2ebf2 100%);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.08);
    padding: 2.5rem 2rem 2rem 2rem;
    min-width: 200px;
    max-width: 260px;
    text-align: center;
    transition: transform 0.5s cubic-bezier(.77,0,.18,1), box-shadow 0.5s cubic-bezier(.77,0,.18,1), opacity 0.5s cubic-bezier(.77,0,.18,1);
    position: relative;
    overflow: hidden;
    opacity: 1;
}

.stat:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 24px 60px rgba(76,175,80,0.18), 0 10px 32px rgba(0,0,0,0.18);
    opacity: 1;
}

.stat h3 {
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

/* SERVICES */
.services {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #0f172a;
}

body.darkmode section, body.darkmode .service-card, body.darkmode .stat, body.darkmode .client-card, body.darkmode .partner-card, body.darkmode .virtual-monitor, body.darkmode .large-monitor {
    background: #23272a !important;
    color: #e0e0e0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.32);
}

/* PORTFOLIO */
.portfolio {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #ffffff;
}

.portfolio h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.portfolio p {
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.portfolio-grid {
  display: flex;
  gap: 60px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.portfolio-card {
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.monitor {
    position: relative;
    background-color: #0f172a;
    border-radius: 15px;
    padding: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    height: 250px; /* fixed height for all monitors */
    display: flex;
    align-items: center;
    justify-content: center;
}

.monitor img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ensures image fills container without distortion */
    border-radius: 5px;
}

.monitor::before {
    content: "";
    display: block;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 10px;
    background-color: #333;
    border-radius: 50%;
}

.monitor:hover {
    transform: translateY(-10px) scale(1.05);
}

body.darkmode .monitor-screen {
    background: #222 !important;
    border-color: #444 !important;
}
body.darkmode .monitor-base {
    background: #444 !important;
}

/* VIRTUAL MONITOR FRAME AND SCREEN */
.virtual-monitor {
  width: 220px;
  margin: 0 auto 20px auto;
  background: #222;
  border-radius: 16px 16px 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.monitor-screen {
  width: 200px;
  height: 120px;
  background: #111;
  border-radius: 12px 12px 4px 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #444;
}
.monitor-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #222;
}
.monitor-base {
  width: 60px;
  height: 16px;
  background: #444;
  border-radius: 0 0 8px 8px;
  margin-top: -4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.large-monitor {
  width: 520px;
  background: white;
  border-radius: 32px 32px 16px 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.32), 0 6px 20px rgba(0,0,0,0.20);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 24px;
  transition: transform 0.5s cubic-bezier(.77,0,.18,1), box-shadow 0.5s cubic-bezier(.77,0,.18,1), opacity 0.5s cubic-bezier(.77,0,.18,1);
}
.large-monitor:hover {
  transform: translateY(-16px) scale(1.04);
  box-shadow: 0 24px 60px rgba(76,175,80,0.18), 0 10px 32px rgba(0,0,0,0.18);
  opacity: 1;
}
.large-monitor .monitor-screen {
  width: 480px;
  height: 270px;
  background: white;
  border-radius: 24px 24px 8px 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 8px solid #444;
  margin-top: 24px;
}
.large-monitor .monitor-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #222;
}
.large-monitor .monitor-base {
  width: 160px;
  height: 32px;
  background: #444;
  border-radius: 0 0 16px 16px;
  margin-top: -12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.28);
}
.large-monitor h3 {
  margin-top: 18px;
  color: #333;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 1px;
}

/* CONTACT */
.contact {
    padding: 4rem 2rem;
    background-color: #e0f7fa;
    text-align: center;
}

.contact form {
    max-width: 600px;
    margin: 2rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact input, .contact textarea {
    padding: 0.75rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.contact button {
    width: 150px;
    align-self: center;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #0f172a;
    color: white;
}

body.darkmode footer {
    background: #181a1b;
    color: #e0e0e0;
}

/* ANIMATIONS */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px);}
    100% { opacity: 1; transform: translateY(0);}
}

section {
    animation: fadeInUp 1s ease forwards;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.clients {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(2,119,189,0.08);
    margin: 2rem 0;
    animation: fadeInUp 1.2s cubic-bezier(.77,0,.18,1);
}
.clients h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.clients p {
    max-width: 700px;
    margin: 0 auto 2rem auto;
}
.clients-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}
.client-card {
    background: linear-gradient(135deg, #e0f7fa 60%, #b2ebf2 100%);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.08);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    transition: transform 0.5s cubic-bezier(.77,0,.18,1), box-shadow 0.5s cubic-bezier(.77,0,.18,1), opacity 0.5s cubic-bezier(.77,0,.18,1);
    position: relative;
    overflow: hidden;
    opacity: 1;
}
.client-card:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 24px 60px rgba(76,175,80,0.18), 0 10px 32px rgba(0,0,0,0.18);
    opacity: 1;
}
.client-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 12px;
}
.client-card h4 {
    margin: 0.5rem 0 0.5rem 0;
    font-size: 1.1rem;
    color: #0277bd;
    font-weight: 600;
}
.client-card p {
    font-size: 1rem;
    color: #0f172a;
    margin: 0;
    font-style: italic;
}
@media (max-width: 900px) {
    .clients-grid {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    .client-card {
        min-width: 80vw;
        max-width: 98vw;
    }
}

/* PARTNERS */
.partners {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #ffffff;
}

.partners h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.partners p {
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.partners-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}
.partner-card {
    background: linear-gradient(135deg, #e0f7fa 60%, #b2ebf2 100%);
    border-radius: 18px;
    box-shadow: none;
    transition: transform 0.4s cubic-bezier(.77,0,.18,1), box-shadow 0.4s cubic-bezier(.77,0,.18,1), opacity 0.4s cubic-bezier(.77,0,.18,1);
    position: relative;
    overflow: hidden;
    opacity: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 400px;
    width: 400px;
}
.partner-card:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 16px 40px rgba(2,119,189,0.12), 0 4px 12px rgba(76,175,80,0.10);
    opacity: 1;
}
body.darkmode .partner-card {
    background: #23272a !important;
    border-radius: 0 !important;
    box-shadow: none;
    transition: transform 0.4s cubic-bezier(.77,0,.18,1), box-shadow 0.4s cubic-bezier(.77,0,.18,1), opacity 0.4s cubic-bezier(.77,0,.18,1);
}
body.darkmode .partner-card:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 16px 40px rgba(76,175,80,0.18), 0 4px 12px rgba(2,119,189,0.12);
    opacity: 1;
}
.partner-card img {
    width: 50%;
    height: 50%;
    object-fit: contain;
    margin-bottom: 0.5rem;
    margin-top: 50px;
    border-radius: 12px;
}
.partner-actions {
    display: flex;
    gap: 16px;
    margin-top: 50px;
    justify-content: center;
}
.partner-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #0277bd;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(2,119,189,0.10);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.partner-btn:hover {
    background: #4CAF50;
    color: #fff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(76,175,80,0.18), 0 4px 12px rgba(2,119,189,0.12);
}
.icon {
    display: flex;
    align-items: center;
}
@media (max-width: 900px) {
    .partners-grid {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    .partner-card {
        min-width: 80vw;
        max-width: 98vw;
    }
}

/* RESPONSIVE */
@media(max-width: 768px){
    header nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 2rem 1rem 0; /* standard padding on mobile */
        width: 100%; /* ensure full width on mobile */
        position: static; /* reset position for mobile */
    }
    
    .logo {
        margin-left: 1rem; /* minimal margin from left edge on mobile */
    }
    
    header nav ul {
        flex-direction: column;
        gap: 0.5rem;
        margin: 0;
        width: 100%;
        position: static; /* reset position for mobile */
        left: auto; /* reset centering */
        transform: none; /* reset transform */
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
    }
}

body.darkmode input,
body.darkmode textarea {
    background: #23272a !important;
    color: #fff !important;
    border: 1px solid #444 !important;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif !important;
}
body.darkmode input::placeholder,
body.darkmode textarea::placeholder {
    color: #bbb !important;
    opacity: 1;
}

/* PROFILE PAGE STYLES */
.profile-section {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
    min-height: 80vh;
}

.profile-header {
    text-align: center;
    margin-bottom: 3rem;
}

.profile-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.profile-header p {
    color: #666;
    font-size: 1.1rem;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-info-card,
.application-history-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.profile-info-card h2,
.application-history-card h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
}

.user-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    background: #0277bd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    overflow: hidden;
}

.avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    color: #333;
    font-size: 1rem;
}

.admin-badge {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-actions {
    text-align: center;
}

.applications-grid {
    display: grid;
    gap: 1.5rem;
}

.application-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.application-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.application-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.application-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-new {
    background: #e3f2fd;
    color: #0277bd;
}

.status-under-review {
    background: #fff3e0;
    color: #f57c00;
}

.status-accepted {
    background: #e8f5e8;
    color: #4CAF50;
}

.status-rejected {
    background: #ffebee;
    color: #f44336;
}

.application-details p {
    margin: 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
}

.unread-indicator {
    background: #0277bd;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.application-actions {
    margin-top: 1rem;
    text-align: right;
}

.no-applications {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.no-applications i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-applications h3 {
    margin: 1rem 0 0.5rem 0;
    color: #333;
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    overflow: hidden;
}

.modal-header {
    background: #0277bd;
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: white;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 2rem;
}

.settings-tabs {
    display: flex;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #0277bd;
    border-bottom-color: #0277bd;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #0277bd;
    box-shadow: 0 0 0 3px rgba(2, 119, 189, 0.1);
}

.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.avatar-preview {
    display: flex;
    justify-content: center;
}

.upload-options {
    text-align: center;
}

.upload-note {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.btn-primary {
    background: #0277bd;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: #025a94;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #5a6268;
    color: white;
}

/* NOTIFICATION STYLES */
.notification-item:hover {
    background: #f8f9fa !important;
}

/* DARK MODE SUPPORT FOR PROFILE */
body.darkmode .profile-section {
    background-color: #1a1a1a;
}

body.darkmode .profile-info-card,
body.darkmode .application-history-card {
    background: #2d2d30;
    border-color: #444;
}

body.darkmode .profile-header h1,
body.darkmode .profile-info-card h2,
body.darkmode .application-history-card h2 {
    color: #fff;
}

body.darkmode .info-item span,
body.darkmode .application-header h3 {
    color: #fff;
}

body.darkmode .info-item label {
    color: #ccc;
}

body.darkmode .application-card {
    background: #3a3a3c;
    border-color: #555;
}

body.darkmode .modal-content {
    background-color: #2d2d30;
}

body.darkmode .modal-body {
    background-color: #2d2d30;
}

body.darkmode .form-group label {
    color: #fff;
}

body.darkmode .form-group input {
    background: #3a3a3c;
    border-color: #555;
    color: #fff;
}

body.darkmode .tab-btn {
    color: #ccc;
}

body.darkmode .tab-btn.active {
    color: #0277bd;
}

body.darkmode .no-applications h3 {
    color: #fff;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .profile-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .user-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .settings-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
        border-bottom: 1px solid #e9ecef;
        border-right: 2px solid transparent;
    }
    
    .tab-btn.active {
        border-bottom-color: #e9ecef;
        border-right-color: #0277bd;
    }
}

                .feature-list {
                    list-style: none;
                    padding-left: 0;
                    margin: 0;
                    display: grid;
                    grid-template-columns: 1fr 1fr;
                    gap: 0.5rem 1.5rem;
                    font-size: 1rem;
                }
                .feature-list li {
                    display: flex;
                    align-items: center;
                    gap: 0.6em;
                    background: #f4f8fb;
                    border-radius: 6px;
                    padding: 0.35em 0.7em;
                    margin-bottom: 0.2em;
                    color: #222;
                    box-shadow: 0 1px 2px rgba(2,119,189,0.04);
                    font-weight: 500;
                }
                .feature-list i {
                    color: #0277bd;
                    min-width: 20px;
                    text-align: center;
                }
                .product-table td, .product-table th {
                    border: none;
                }
                .product-table tr:not(:last-child) {
                    border-bottom: 2px solid #e0f7fa;
                }
                @media (max-width: 900px) {
                    .feature-list {
                        grid-template-columns: 1fr;
                    }
                }
body.darkmode .product-table-container,
body.darkmode .product-table {
    background: #23272a !important;
    color: #fff !important;
}
body.darkmode .product-table th {
    background-color: #111c26 !important;
    color: #fff !important;
}
body.darkmode .product-table tr {
    border-bottom: 2px solid #2c3e50 !important;
}
body.darkmode .product-table td,
body.darkmode .product-table th {
    color: #fff !important;
}
body.darkmode .product-table-note {
    color: #ccc !important;
}
body.darkmode .product-icon i.discord-icon { color: #5865f2 !important; }
body.darkmode .product-icon i.website-icon { color: #4CAF50 !important; }
body.darkmode .product-icon i.hub-icon { color: #4FC3F7 !important; }
body.darkmode .feature-list li {
    background: #222 !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(2,119,189,0.08);
}
body.darkmode .feature-list i {
    color: #4FC3F7 !important;
}
body.darkmode .product-table td:first-child {
    background: transparent !important;
    vertical-align: middle;
    text-align: center;
    width: 120px;
    min-width: 80px;
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}
body.darkmode .product-table td:first-child i {
    display: block;
    margin: 0 auto 0.5rem auto;
    font-size: 2.2rem;
}
body.darkmode .product-table td:first-child strong {
    color: #fff !important;
    font-size: 1.1rem;
    display: block;
    margin-top: 0.5rem;
}
body.darkmode .product-table th:first-child {
    width: 120px;
    min-width: 80px;
}
body.darkmode .product-table tr {
    /* Remove background for all table rows in dark mode */
    background: transparent !important;
}