/* Reset and Basics */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Family Tree Container */
.family-tree-container {
    max-width: 95%;
    margin: 15px auto;
    text-align: center;
}

/* Family Tree Styles */
.family-tree,
.family-children {
    padding: 0;
    margin: 0;
	list-style: none;
    display: flex;
	flex-direction: row; /* تحديد الاتجاه الأفقي هنا */
    justify-content: center;
}

/* Family Name Styles */
.family-name {
    cursor: pointer;
    padding: 1px;
    margin: 1px;
    border-radius: 10px;
	font-size: 24px;
    border: 2px solid; /* Adding borders instead of background color */
}

/* Button Styles */
.family-name button {
    margin-left: 1px;
    background-color: transparent;
    color: #4CAF50;
	border: 0.5px solid; 
	border-radius: 50%;
    padding: 0px 1px;
    cursor: pointer;
	font-size: 24px;
    transition: color 0.3s;
}

.family-name button:hover {
    color: #45a049;
}


/* Floating Card Styles */
.floating-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ccc;
    text-align: center;
    padding: 10px;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: none;
    max-height: 80%;
    max-width: 80%;
    overflow-y: auto;
	
}

.floating-card img {
    max-width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #3498db;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    object-fit: cover;
}

/* No Data Message Styles */
.no-data {
    text-align: center;
    color: #888;
    margin-top: 20px;
    font-style: italic;
    font-size: 1.1em;
}

/* Close Button Styles */
.floating-card .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: #3498db;
    font-size: 1.2em;
    transition: color 0.3s ease-in-out;
}

/* Hover Effect for Close Button */
.floating-card .close-btn:hover {
    color: #297fb8;
}

/* Updated Sidebar Styles */
.sidebar {
    position: fixed;
    top: 10%;
    right: -220px;
    width: auto;
    max-width: 80%;
    height: auto;
    background-color: #2c3e50; /* لون جديد وحديث */
    transition: right 0.3s, width 0.3s;
    padding: 25px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* تأثير الظل لإضافة عمق */
    z-index: 1000; /* زيادة الفهرس للتأكيد على الظهور أعلى العناصر الأخرى */
	border: none;
    border-radius: 20%;
}

/* Toggle Sidebar Button Styles */  
#toggleSidebar {
    position: fixed;
    top: 15px;
    right: 15px;
    cursor: pointer;
    background-color: #3498db; /* لون جديد وحديث */
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001; /* زيادة الفهرس للتأكيد على الظهور أعلى الشريط الجانبي */
}

/* Navigation Button Styles */
.nav-button {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    background-color: #3498db; /* لون جديد وحديث */
    color: #fff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Background Color Change on Hover */
.nav-button:hover {
    background-color: #2980b9; /* لون جديد وحديث */
    transform: scale(1.05);
}

/* Active Navigation Button Styles */
.nav-button.active {
    background-color: #2980b9; /* لون جديد وحديث */
}

/* Form Styles */
h1 {
    text-align: center;
}

form {
    max-width: 400px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
}

input[type="text"],
input[type="file"],
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="submit"] {
    background-color: #4CAF50;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

/* Hover Effect for Submit Button */
input[type="submit"]:hover {
    background-color: #45a049;
}
