/* General Styles */
html, body {
    height: 100%; 
    display: flex;
    flex-direction: column; 
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #eaf6f6;
}


main {
    flex: 1; /* Allow main content to grow and push footer down */
}
main h2 {
    margin-bottom: 10px;
    margin-left: 20px;
}

main p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    margin-left: 20px;
}

footer {
    position: relative; /* Default width control behavior for long pages */
    margin-top: auto; /* Ensures footer stays at bottom for short pages */
}
.copyright{
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
    width: 100%;
}
/* Contact Info Section */
.contactinfo {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background-color: #fff;
    flex-wrap: wrap; 
}

.contactinfo .section {
    flex: 1;
    text-align: center;
}

.contactinfo h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contactinfo .social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.contactinfo .social-icons img {
    width: 24px;
    height: 24px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #eaf6f6;
}

img, video {
    max-width: 100%; /* Ensure media scales */
    height: auto;
}

a {
    text-decoration: none;  /*remove underline and so from links*/
    color: #333;
}

/* Navigation Bar */
#check-box[type="checkbox"] {
    display: none;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    color: black;
    display: flex;
    justify-content: flex-start; /* Align items to the left */
    padding: 20px 20px;
    z-index: 1000;
    flex-wrap: wrap;
}

.small-screen {
    margin-left: auto; /* Push links to the far right */
    margin-right: 3%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

nav a {
    color: black; /* Ensure links are black */
    padding: 10px 20px;
}

nav a:hover {
    background-color: #dfdcdc; /* Slight gray background on hover */
    border-radius: 10px;
    color: #555;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Header */
header {
    padding: 50px;
    background-color: #eaf7ff;
    margin-top: calc(60px + 30px); /* 60px for navbar + 30px extra space */
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.login-button a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #00060c;
    color: white;
    border-radius: 10px;
    font-size: 1rem;
}
.login-button a:hover{
    background-color: white;
    color: #00060c;
}

/* Image Section */
.image-section {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
}

.image-section img {
    width: 45%;
    border-radius: 10px;
}

/* Card Section */
.card-section {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background-color: #f9f9f9;
    flex-wrap: wrap; /* Allow wrapping for small screens */
    gap: 10px;
}

.card {
    width: 30%;
    max-width: 300px; /* Limit width for larger screens */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 50px;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9rem;
}

/*  */

/* Dashboard Section */
.dashboard-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: calc(80vh - 60px); /* Full height minus navigation bar height */
    flex-wrap: wrap; /* Add wrap for smaller screens */
    gap: 3.5%;
    margin: auto 2.5rem 2.5rem;
}

.section-admin {
    flex: 1; /* Equal width for all sections */
    margin: 5px;
    padding: 20px;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    height: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-admin:hover {
    transform: translateY(-20px);
    box-shadow: 0 0 10px rgba(72, 71, 71, 0.9), 
                0 6px 6px rgba(53, 53, 53, 0.8); /* Depth for 3D look */
}
#client-register{
    background-image: url("../images/client_register.jpg");
    background-size: cover; /* Optional: make the image cover the element */
    background-position: center; /* Optional: center the image */
    background-size: 300px  400px;

}
#client-list{
    background-image: url("../images/client_list.jpg");
    background-size: cover; /* Optional: make the image cover the element */
    background-position: center; /* Optional: center the image */
    background-size: 300px  400px;

}
#Manual-message{
    background-image: url("../images/manual_messaging.jpg");
    background-size: cover; /* Optional: make the image cover the element */
    background-position: center; /* Optional: center the image */
    background-size: 300px  400px;

}
#dashboard{
    background-image: url("../images/report.jpg");
    background-size: cover; /* Optional: make the image cover the element */
    background-position: center; /* Optional: center the image */
    background-size: 300px  400px;

}

.section-admin a {
background: #11cdd4;
background-image: -webkit-linear-gradient(top, #11cdd4, #11999e);
background-image: -moz-linear-gradient(top, #11cdd4, #11999e);
background-image: -ms-linear-gradient(top, #11cdd4, #11999e);
background-image: -o-linear-gradient(top, #11cdd4, #11999e);
background-image: linear-gradient(to bottom, #11cdd4, #11999e);
-webkit-border-radius: 8;
-moz-border-radius: 8;
border-radius: 8px;
font-family: "Montserrat", sans-serif;;
color: #ffffff;
font-size: 20px;
padding: 10px 20px 10px 20px;
text-decoration: none;
}
.section-admin a:hover {
background: #30e3cb;
background-image: -webkit-linear-gradient(top, #30e3cb, #2bc4ad);
background-image: -moz-linear-gradient(top, #30e3cb, #2bc4ad);
background-image: -ms-linear-gradient(top, #30e3cb, #2bc4ad); 
background-image: -o-linear-gradient(top, #30e3cb, #2bc4ad);
background-image: linear-gradient(to bottom, #30e3cb, #2bc4ad);
text-decoration: none;
}

.signup-nav {
    padding: 10px;
    background-color: black;
    color: #fff;
    border-radius: 7px;
}


@media (max-width: 768px) {
    .card-section, .dashboard-container {
        align-items: center;
        flex-direction: column; 
        gap: 20px;
    }

    .card, .section-admin {
        width: 90%; /* Full width for small screens */
        height: auto; /* Remove fixed height */
    }


}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem; 
    }

    header p {
        font-size: 1rem;
    }

    footer {
        font-size: 0.9rem; 
    }
}




fieldset {
    border: none;
    padding: 0;
}

legend {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
    color: #007bff;
}

label {
    font-size: 1rem;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

button {
    padding: 10px;
    width: 100%;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    @import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
body{
    overflow-x: hidden;
}
.small-screen{
    position: absolute;
    right: 15px;
    top: 25px;
}
.links{
    display: flex;
    flex-direction: column;
}
#check-box[type="checkbox"] {
    display: inline-block; /* Make it visible on small screens */
}
#check-box{
    width: 25px;
    height: 25px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.116);
    text-align: center;
    border-radius: 5px;
    color: rgb(41, 41, 41);
}
#check-box::before{
    content: '\f0c9';
    font-family: 'Font Awesome 5 Free';
    font-weight: 700;
    font-size: 1.8em;
    z-index: 10;
    color: white;
}
#check-box:checked::before{
    content: '\f00d';
    animation: anim 1s;
}
@keyframes anim{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}
#check-box::after{
    content: '';
    position: absolute;
    top: -15%;
    left: -20%;
    width: 140%;
    height: 120%;
    background: rgb(42, 42, 42);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.116);
    border-radius: 5px;
    z-index: -1;
}
.links{
    position: absolute;
    margin-top: 15px;
}
.links a{
    transform: translate(100px);
    text-align: center;
    padding: 5px 20px;
    background: rgb(42, 42, 42);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.103);
    border-radius: 5px;
    text-decoration: none;
    color: white;
    margin: 5px 0;
    transition: transform calc(var(--i) * 0.2s), background .4s;
}
#check-box:checked ~ .links a{
    transform: translate(-80px);
}
.links a:hover{
    background: #DD4A48;
    box-shadow: 0 0 15px #dd4b48b7;
}
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }


    button {
        font-size: 0.9rem;
    }
}
