/* Base Styles */
body {
    margin: 0;
    background-color: #2c2f33;
    color: white;
    font-family: Arial, sans-serif;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Banner */
.banner {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: center 43%;
}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

#toggle-theme {
    background-color: #23272a; /* Dark background */
    color: white;
    padding: 8px 12px; /* Smaller padding for a compact look */
    border-radius: 50%; /* Circle shape for a more button-like appearance */
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.light-mode #toggle-theme {
    background-color: #f0f0f0; /* Light background for light mode */
    color: #333333; /* Dark text for light mode */
}

#toggle-theme:hover {
    background-color: #7289da; /* Highlight color on hover */
    transform: scale(1.1); /* Slightly increase size on hover */
}

body.light-mode #toggle-theme:hover {
    background-color: #7289da; /* Same highlight in light mode */
}

.sidebar-icons {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 1000;
}

.sidebar-icons a {
    background-color: #ffffff; /* Dark background */
    padding: 10px;
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* Soft shadow */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.sidebar-icons a:hover {
    background-color: #7289da; /* Highlight color on hover */
    transform: scale(1.1);
}

.sidebar-icons a img {
    height: 36px;
    width: 36px;
    object-fit: contain;
    opacity: 0.9;
}


/* Main Content */
.parent-container {
    text-align: center;
    margin-top: 20px;
}

.head {
    display: inline-block;
    background-color: #23272a;
    color: white;
    border: 2px solid #7289da;
    border-radius: 10px;
    padding: 10px;
}

.head img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

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

nav ul li {
    margin: 10px;
}

nav ul li a button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #7289da;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

nav ul li a button:hover {
    background-color: #99aab5;
}

/* Light Theme */
.light-theme {
    background-color: #f5f5f5;
    color: #222;
}

.light-theme .banner img {
    filter: brightness(90%);
}

.light-theme .socialBar {
    background-color: #ddd;/* Default theme is dark */
    body {
        background-color: #ffffff;
        color: white;
        transition: background-color 0.3s, color 0.3s;
    }
    
    /* Light theme */
    body.light-mode {
        background-color: #ffffff;
        color: #333333;
    }
    
    /* Sidebar styles */
    .sidebar-icons {
        position: fixed;
        top: 50%;
        left: 20px;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        z-index: 1000;
    }
    
    .sidebar-icons a {
        background-color: #23272a; /* Dark background */
        padding: 10px;
        border-radius: 15px; /* Rounded corners */
        box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* Soft shadow */
        transition: transform 0.3s ease, background-color 0.3s ease;
    }
    
    body.light-mode .sidebar-icons a {
        background-color: #f0f0f0; /* Light background for light mode */
    }
    
    .sidebar-icons a:hover {
        background-color: #7289da; /* Highlight color on hover */
        transform: scale(1.1);
    }
    
    body.light-mode .sidebar-icons a:hover {
        background-color: #7289da; /* Same highlight in light mode */
    }
    
    .sidebar-icons a img {
        height: 36px;
        width: 36px;
        object-fit: contain;
        opacity: 0.9;
    }
    
    /* Theme toggle button styles */
    .theme-toggle {
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1001;
    }
    
    #toggle-theme {
        background-color: #23272a;
        color: white;
        padding: 10px 15px;
        border-radius: 50px;
        border: none;
        font-size: 18px;
        cursor: pointer;
        transition: background-color 0.3s, color 0.3s;
    }
    
    body.light-mode #toggle-theme {
        background-color: #ffffff;
        color: #333333;
    }
    
    #toggle-theme:hover {
        background-color: #7289da;
        color: white;
    }
    
    /* Banner and other content styles */
    .banner {
      width: 100%;
      height: 220px; /* Adjusted for better visibility */
      background-color: rgba(0, 0, 0, 0.5); /* Darken background */
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    
    .banner img {
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: center;
        border-radius: 10px; /* Slightly rounded edges */
    }
    
    /* Main content */
    .parent-container {
        text-align: center;
        padding-top: 250px; /* Ensures content starts below the banner */
    }
    
    .head {
        display: inline-block;
        margin: auto;
        text-align: center;
        background-color: #23272a;
        color: white;
        border: 2px solid #7289da;
        border-radius: 10px;
        padding: 10px;
    }
    
    .textarea {
        text-align: center;
    }
    
    .textarea textarea {
        resize: none;
    }
    
}

.light-theme .socialBar img:hover {
    background: #7289da; /* Keep hover color */
}

.light-theme .head {
    background-color: #ffffff;
    color: #222;
    border-color: #7289da;
}

.light-theme nav ul li a button {
    background-color: #7289da;
    color: white;
}

.light-theme nav ul li a button:hover {
    background-color: #99aab5;
}

/* Optional: Theme toggle button style change */
.light-theme .theme-toggle button {
    background-color: #7289da;
    color: white;
}

#data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#data-table th, #data-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

#data-table th {
    background-color: #23272a;
}