/* Ensure .card-grid uses the --cards-per-row variable for columns */
.card-grid {
    display: grid;
    grid-gap: 25px;
    grid-template-columns: repeat(var(--cards-per-row, 4), 1fr);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

header {
    background: linear-gradient(to right, #4f46e5, #7c3aed, #ec4899);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 16px;
    margin-left: 5px;
    margin-right: 5px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-center {
    gap: 12px;
}

.header-right {
    display: flex;
    gap: 12px;
}

.menu-btn, .header-icon-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
    max-width: 60px;
}

.menu-btn:hover, .header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.menu-btn svg, .header-icon-btn svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.header-title-section h1 {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    min-width: 300px;
}

.header-title-section p {
    font-size: 14px;
    color: #e0e7ff;
    margin-top: 4px;
    font-weight: 500;
}

.header-title-info {
    font-size: 16px;
    color: #e0e7ff;
    margin-top: 4px;
    font-weight: 500;
    text-shadow: none;
}

.header-title {
    font-size: 18px;
    font-weight:bold;
    color: yellow;
    text-shadow:none;
}
.header-subtitle {
    font-size: 14px;
    color: yellow;
    text-shadow:none;
}

.header-age {
    font-size: 12px;
    color: #4504dc;
    font-weight: bold;
    text-shadow: none;
}
.header-text {
    font-size: 12px;
    color: #0f0f0f;
    font-weight: normal;
    text-shadow: none;
}

.menu-item{
    font-size: 14px;
    color: white;
    font-weight: normal;
    text-shadow: none;
    margin-bottom: 8px;
    display: block;
    text-decoration:none;
    cursor: pointer;
}
.menu-td{
    background-color: whitesmoke;
    border-radius: 8px;
    padding-top: 5px;
    padding-left: 4px;
    padding-right: 4px;
    border: solid gray 1px;
    cursor: pointer;
}
.menu-td-active{
    background-color: yellow;
    border-radius: 8px;
    padding-top: 5px;
    padding-left: 4px;
    padding-right: 4px;
    border: solid gray 1px;
    cursor: pointer;
}
.menu-table{
    border-collapse: separate; /* Required for border-spacing to work */
    border-spacing: 10px;      /* 10px between all cells */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    color: white;
    /* text-align: center; */
    margin-bottom: 0px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}


:root {
    --card-min-width: 400px;
}

.card-grid {
    display: grid;
    grid-gap: 25px; /* or your gap value */
    grid-template-columns: repeat(var(--cards-per-row, 4), 1fr);
    
    /* display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--card-min-width), 1fr));
    gap: 25px;
    padding: 10px; */
}

.card-table {
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(var(--card-min-width), 1fr)); */
    gap: 25px;
    padding: 10px;
}

.card {
    background: white;
    border-radius: 12px;
    border-width: 2px;
    border-style: solid;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.card-title {
    font-size: 18px;
    color: #667eea;
    margin-bottom: 20px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.card-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.card-item:last-child {
    border-bottom: none;
}

.card-label {
    font-size: 12px;
    font-weight: normal;
    color: #555;
    width:70px;
}

.card-value {
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    color: #2803fe;
}
.card-links{
    font-size: 12px;
    color:blue;
}
.card-message {
    font-size: 14px;
    font-weight: bold;
    /* color: #ff0000; */
    margin-top: 10px;
}

.card-table-heading {
    text-align: left;
    font-size: 14px;
    font-weight: bold;
    color: #04000a;
}

.card-table-value {
    font-size: 12px;
    font-weight: normal;
    color: #2803fe;
}

.card-table-td {
    border: solid 1px gray;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}



/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 320px;
    background: linear-gradient(to bottom, #4338ca, #7e22ce);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    text-shadow: none;
}

.side-menu.active {
    transform: translateX(0);
}

.menu-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.menu-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    max-width: 60px;
}

.menu-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.menu-close-btn svg {
    width: 20px;
    height: 20px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.menu-section {
    margin: 0 24px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.menu-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-section label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #e0e7ff;
    margin-bottom: 8px;
}

.menu-section select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #a5b4fc;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-section select:focus {
    outline: 2px solid white;
}

.menu-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    color: #e0e7ff;
}

.menu-info span {
    font-weight: bold;
    color: white;
}

.quick-actions button {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.quick-actions button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Menu button to trigger menu */
.menu-btn {
    margin: 50px;
    padding: 12px 24px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.menu-btn:hover {
    background: #4338ca;
}



/* Color Classes - 6 alternating gradient colors */
/* 
color-0 - Blue gradient
color-1 - Purple gradient
color-2 - Green gradient
color-3 - Orange gradient
color-4 - Pink gradient
color-5 - Teal gradient 
color-6 - Yellow gradient 
color-7 - Red gradient 
color-8 - Gray gradient 
*/
.cardcolor-0 {
    background: linear-gradient(to bottom right, #dbeafe, #bfdbfe);
    border-color: #bfdbfe;
}

.cardcolor-1 {
    background: linear-gradient(to bottom right, #f3e8ff, #e9d5ff);
    border-color: #e9d5ff;
}

.cardcolor-2 {
    background: linear-gradient(to bottom right, #dcfce7, #bbf7d0);
    border-color: #bbf7d0;
}

.cardcolor-3 {
    background: linear-gradient(to bottom right, #fed7aa, #fdba74);
    border-color: #fdba74;
}

.cardcolor-4 {
    background: linear-gradient(to bottom right, #fce7f3, #fbcfe8);
    border-color: #fbcfe8;
}

.cardcolor-5 {
    background: linear-gradient(to bottom right, #ccfbf1, #99f6e4);
    border-color: #99f6e4;
}

.cardcolor-6 {
    background: linear-gradient(to bottom right, #f5f4b7, #f4f292);
    border-color: #f4f292;
}

.cardcolor-7 {
    background: linear-gradient(to bottom right, #f9a9a9, #fac7c7);
    border-color: #fac7c7;
}

.cardcolor-8 {
    background: linear-gradient(to bottom right, #3d3c3c, #373030);
    border-color: #373030;
}
