/* Custom Property for the spinning animation */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* The Main Container */
.card-neon {
  padding: .6rem;
  border-radius: 10px;
  position: absolute;
  z-index: 1;
}

/* The Neon Border and Glow */
.card-neon::after, 
.card-neon::before {
  content: '';
  position: absolute;
  height: 90%;
  width: 99%;
  background-image: conic-gradient(from var(--angle), #ff4545, #00ff99, #006aff, #ff0095, #ff4545);
  top: 46%;
  left: 50%;
  translate: -50% -50%;
  z-index: -1;
  padding: 4px; /* Adjust this for border thickness */
  border-radius: 10px;
  animation: 1.6s spin linear infinite;
}

/* The Glow Effect */
.card-neon::before {
  filter: blur(1.5rem);
  opacity: 0.5;
}

/* Link and Title Adjustments to ensure visibility */
.card-neon .card-title {
  font-weight: 600;
}

.card-neon a {
  text-decoration: none;
}

.card-neon .table-light {
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
}

/*  */
/* The Main Container */
.card-neon-2 {
  padding: .6rem;
  border-radius: 10px;
  position: absolute;
  z-index: 1;
}

/* The Neon Border and Glow */
.card-neon-2::after, 
.card-neon-2::before {
  content: '';
  position: absolute;
  height: 92%;
  width: 99%;
  background-image: conic-gradient(from var(--angle), #ff4545, #00ff99, #006aff, #ff0095, #ff4545);
  top: 47.2%;
  left: 50%;
  translate: -50% -50%;
  z-index: -1;
  padding: 4px; /* Adjust this for border thickness */
  border-radius: 10px;
  animation: 1.6s spin linear infinite;
}

/* The Glow Effect */
.card-neon-2::before {
  filter: blur(1.5rem);
  opacity: 0.5;
}

/* Link and Title Adjustments to ensure visibility */
.card-neon-2 .card-title {
  font-weight: 600;
}

.card-neon-2 a {
  text-decoration: none;
}

.card-neon-2 .table-light {
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
}



/* Heatmap Layout */
.heatmap-wrapper {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e3e6f0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
.heatmap-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hour-block {
    width: 45px; /* Increased size to fit text */
    height: 45px;
    border-radius: 6px;
    background-color: #f1f3f5;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #6c757d;
    position: relative;
    overflow: hidden; /* To clip the progress fill */
    transition: all 0.2s ease;
}
/* The visual fill effect */
.block-fill-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #d4edda; /* Light green fill */
    z-index: 1;
    transition: height 0.5s ease;
}
.block-text {
    z-index: 2; /* Keep text above the fill */
}
.hour-block.completed {
    background-color: #0ab39c;
    border-color: #7ae4d6;
    color: #ffffff;
}
.hour-block.completed .block-fill-bg {
    display: none;
}
.hour-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #28a745;
}



/* FOR NC II */
@media print {
    /* 1. Force the page to be A4 Landscape with NO margins */
    @page { 
        size: A4 landscape; 
        margin: 0; 
    }
    
    /* 2. Hide everything on the website */
    /* body * { visibility: hidden; } */
    
    /* 3. Force the certificate to the TOP LEFT of the paper */
    #printableNCII, #printableNCII * { visibility: visible; }
    #printableNCII { 
        position: fixed !important; 
        left: 0 !important; 
        top: 0 !important; 
        width: 297mm; /* Full width of A4 Landscape */
        height: 210mm; /* Full height of A4 Landscape */
        margin: 0;
        padding: 10mm; /* This creates the white space inside the paper */
        background: white;
    }
    .no-print { display: none !important; }
}

/* Certificate Styling */
.cert-container {
    width: 100%;
    height: 100%;
    border: 2px solid #1a237e; /* Outer thin border */
    padding: 5px;
    position: relative;
}
.cert-inner-border {
    border: 5px solid #1a237e; /* Thick inner border */
    height: 100%;
    padding: 40px;
    text-align: center;
    font-family: "Arial", sans-serif;
}
.nc-title-bar {
    background-color: #ffff00 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    font-size: 28pt;
    font-weight: bold;
    color: #1a237e;
    padding: 10px;
    margin: 20px 0;
    text-transform: uppercase;
}
.student-name {
    font-size: 30pt;
    font-weight: bold;
    margin: 20px 0;
    text-decoration: underline;
}

/* Three-column Competency Layout */
.competency-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
    font-size: 9pt;
    margin-top: 20px;
}
.comp-column h6 { font-weight: bold; border-bottom: 1px solid #000; margin-bottom: 5px; font-size: 10pt; }
.unit-item { display: flex; margin-bottom: 2px; }
.unit-code { width: 80px; font-weight: bold; flex-shrink: 0; }

.footer-grid {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.photo-box { width: 100px; height: 100px; border: 1px solid #000; background: #eee; }
/* END FOR NC II */




@keyframes spin {
  from { --angle: 0deg; }
  to { --angle: 360deg; }
}

/* Container needs to hide the text when it goes out of bounds */
.scroll-container {
    overflow: hidden;
    white-space: nowrap;
}

/* The animation logic */
.scrolling-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 10s linear infinite;
}

@keyframes marquee {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}