/* Universal Box-Sizing (ADD THIS AT THE VERY TOP) */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* --- Body (Existing) --- */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; /* For a more modern, clean sans-serif */
    font-size: 14px; /* Sets a clear, common base font size for consistency */
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #FFF;
}

/* --- GLOBAL HEADING STYLES (MODIFIED BLOCK) --- */
h1, h2, h3, h4, h5, h6 {
    font-family: sans-serif;
    color: #ff00ff;
    margin-top: 25px;
    margin-bottom: 15px;
    line-height: 1.2;
}

h1 {
    font-size: 2.8em;
font-weight: 200; /* NEW: Makes the font lighter (thinner) */
    text-align: center;
    letter-spacing: 2px;
color: #00ffff;
}

h2 {
    font-size: 2.2em;
font-weight: 100; /* NEW: Makes the font lighter (thinner) */
    text-align: left;
letter-spacing: 2px;
    padding-bottom: 5px;
    border-bottom: 1px solid #00ffff;
}

h3 {
 margin-top: 10px;
}
/* --- GLOBAL PARAGRAPH STYLES --- */
p {
    margin-bottom: 10px;
    line-height: 1.6;
}


header {
    background-color: rgba(26, 26, 26, 0.9);
    padding: 20px; /* Consistent with .section */
    text-align: center;
    margin: 0 auto 20px auto;
    max-width: 1000px;
    border-radius: 8px; /* Matches .section */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Matches .section */
    border: 1px solid #333; /* Matches .section */
}


/* --- Main Container (MODIFIED to remove horizontal padding) --- */
.main-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0; /* MODIFIED: Removed horizontal padding here for consistent section width */
}

/* --- Sections (Existing - already consistent) --- */
.section {
    background-color: rgba(26, 26, 26, 0.9);
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* --- Footer (MODIFIED to match .section style and width) --- */
footer {
    background-color: rgba(26, 26, 26, 0.9);
    color: #AAA;
    padding: 20px; /* Consistent with .section */
    text-align: center;
    margin: 20px auto 0 auto;
    font-size: 0.9em;
    max-width: 1000px;
    border-radius: 8px; /* Matches .section */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Matches .section */
    border: 1px solid #333; /* Matches .section */
}

/* --- General Link Styling for Dark Theme (Existing) --- */
a {
    color: #4682B4;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    color: #87CEEB;
    text-decoration: underline;
}

a:active {
    color: #ADD8E6;
}

a:visited {
    color: #9370DB;
}

a:focus {
    outline: 2px solid #00BFFF;
    outline-offset: 2px;
}

p a {
    text-decoration: underline;
}
p a:hover {
    text-decoration: none;
}
/* This targets ALL <table> elements */
table {
    border-collapse: collapse;
    width: 100%;
    border-radius: 8px; /* Add this line */
    overflow: hidden; /* Add this line to clip the content */
}

/* This targets ALL <th> and <td> elements */
th, td {
    padding: 8px;
    border: 1px solid black;
    text-align: center; /* Example: to center all content */
}

/* This targets ALL <th> elements specifically */
th {
    background-color: lightgray;
    font-weight: bold;
}
.calendar-container {
    margin: 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-item {
    background-color: #f0f0f0;
    padding: 20px;
    border: 1px solid #ddd;
}

.day {
    margin-bottom: 10px;

}
 .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
  }

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
    /* ORIGINAL: width: 500px; */
    /* MODIFIED: Use percentages for flexible width */
    width: 80%; /* Takes 80% of the screen width */
    max-width: 800px; /* But doesn't get wider than 800px on large screens */
    /* ORIGINAL: max-width: 90%; */
}

.modal-textarea {
    width: 100%;
    height: 900px; /* Or whatever height you prefer */
    padding: 10px;
    box-sizing: border-box;
    min-height: 200px; /* Ensures a minimum height even if resized small */
    /* ----- FIX HERE ----- */
    /* If you want to resize both horizontally and vertically (default): */
    resize: both; 
    /* OR, if you only want to allow vertical resizing: */
    /* resize: vertical; */
    /* Make sure you DON'T have `resize: none;` or `resize: horizontal;` here. */
}