/* General Page Styling */


/* Container */
.container {
    width: 80%;
    margin: auto;

    min-height: 100vh;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: orange;
    padding: 10px 20px;
}

.header .logo img {
    height: 50px;
}

.search-box input[type="text"] {
    padding: 5px;
    border: none;
    border-radius: 3px;
}



/* Navigation Menu */
.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu ul li {
    position: relative;
}





/* Content Area */
.content {
    padding: 20px;
}





.container2 {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 30%;

    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
}



/* Main Content */
.main-content {
    width: 70%;
    padding: 30px;
    box-sizing: border-box;

}

.main-content h1 {
    margin-top: 0;
}

/* Form Styling */
.daform {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

fieldset {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
}

legend {
    font-weight: bold;
    padding: 0 10px;
}

label {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="time"],
textarea,
select,
input[type="color"],
input[type="file"] {
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

input[type="color"] {
    height: 40px;
    width: 60px;
    padding: 0;
}




.color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 15px 20px; /* row gap / column gap */
}

.color-grid label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.color-grid input[type="color"] {
    margin-left: 10px;
    height: 35px;
    width: 60px;
    border: none;
    cursor: pointer;
}




.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Equal width columns */
}

.calendar-table th, .calendar-table td {
    text-align: center;
    padding: 8px 4px;

}



.calendar-table td a {
    display: block;
    text-decoration: none;
    color: #1f2937;
    padding: 6px 0;
    border-radius: 6px;
    transition: background 0.2s;
}

.calendar-table td a:hover {
    background: #e0e7ff;
}

/* Month navigation */
.cal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cal-nav a {
    text-decoration: none;
    color: #2563eb;
}

.cal-title {
    font-weight: bold;
}

.calendar-table td.has-event a {
    background: #3b82f6; /* blue background for event days */
    color: #fff;
    font-weight: bold;
}

.calendar-table td.has-event a:hover {
    background: #2563eb;
}




/* Event items inside pre-existing div */

.event-item {
    padding: 10px 12px;
    margin-bottom: 10px;
    background-color: #fdfdfd;
    border-radius: 8px;

    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.event-title {
    font-weight: bold;
    font-size: 1rem;
    color: #111827;
}

.event-time {
    font-size: 0.9rem;
    color: #4b5563;
}

.event-desc {
    font-size: 0.95rem;
    color: #1f2937;
    line-height: 1.4;
}




/* pages.css */
.page-tree {
    list-style: none;
    padding-left: 0;
}

.page-tree ul {
    list-style: none;
    margin-left: 25px;
    padding-left: 15px;
    border-left: 2px dashed #ccc;
}

.page-item {
    background: #fff;
    margin: 6px 0;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s;
}

.page-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.page-name {
    font-weight: bold;
    color: #333;
}

.page-actions a {
    margin-left: 10px;
    text-decoration: none;
    font-size: 0.9em;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.page-actions a.edit { color: #2a6ad2; }
.page-actions a.edit:hover { background: #e7f0ff; }

.page-actions a.move { color: #d28a2a; }
.page-actions a.move:hover { background: #fff3e0; }

.page-actions a.delete { color: #d22a2a; }
.page-actions a.delete:hover { background: #ffeaea; }

.pageout img {

		padding-top:6px;
		padding-bottom:6px;
		padding-right:6px;
	
}

/* homepage.css */
.homepage-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

.homepage-table th, .homepage-table td {
    padding: 10px 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.homepage-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.homepage-table tr:nth-child(even) {
    background-color: #fafafa;
}

.homepage-table tr:hover {
    background-color: #f1f7ff;
}

.homepage-table td p {
    margin: 0;
    line-height: 1.4;
}


/* journal.css */
.journal-list {
    list-style: none;
    padding: 0;
    font-family: Arial, sans-serif;
}

.journal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 15px;
    margin-bottom: 6px;
    border-radius: 6px;
    transition: box-shadow 0.2s;
}

.journal-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.journal-item .page-name {
    font-weight: bold;
    color: #333;
}

.journal-item .delete-link {
    color: #d22a2a;
    text-decoration: none;
    font-size: 0.9em;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}

.journal-item .delete-link:hover {
    background: #ffeaea;
}


/* userform.css */
.user-form {
    max-width: 600px;
    font-family: Arial, sans-serif;

    padding: 20px;

}

.user-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #333;
}

.user-form input[type="text"],
.user-form input[type="password"],
.user-form input[type="email"],
.user-form input[type="tel"],
.user-form input[type="date"],
.user-form select,
.user-form textarea {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.user-form textarea {
    resize: vertical;
    min-height: 80px;
}

.user-form select {
    background: #fff;
}


/* caseform.css */
.case-form {
    max-width: 600px;
    font-family: Arial, sans-serif;

    padding: 20px;

}

.case-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #333;
}

.case-form input[type="text"],
.case-form input[type="date"],
.case-form input[type="tel"],
.case-form input[type="email"],
.case-form input[type="url"],
.case-form input[type="time"],
.case-form select,
.case-form textarea {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.case-form textarea {
    resize: vertical;
    min-height: 100px;
}

.case-form .readonly {
    background-color: #eee;
    color: #666;
    cursor: not-allowed;
}


.case-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-item {
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fdfdfd;
    display: flex;

    align-items: center;
}

.case-name {
    font-weight: bold;
    color: #2c3e50;
}

.case-item a {
    margin-left: 10px;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}


