﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;

}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NzMgMjY3LjU0NzkgNTMuNjI4MzMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg2IDY2LjAxODMgMjYzLjU4NiA2Ni4wMTgzWk0yNjMuNTc2IDg2LjA1NDdMMTYwLjA0OSA4Ni4wNTQ3IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA8span class="math-container">$(.MzYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.pre-wrap {
    white-space: pre-wrap;
    font-family: inherit;
}

/* Loading Animation Styles */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.125rem;
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -0.125em;
    border: 0.25em solid currentcolor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Loading overlay for full page loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.loading-content {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 0.3em solid #f3f3f3;
    border-top: 0.3em solid #1b6ec2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

/* Button loading state */
.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading .btn-text {
    opacity: 0.6;
}

/* Error alert styling */
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

/* Home Page Styles */
.home-main {
    width: 100%;
    min-height: 100vh;
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.welcome-section {
    text-align: center;
    padding: 2rem 0 3rem 0;
}

.welcome-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-section .lead {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Enhanced Expandable Section Styling */
.expandable-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.expandable-section:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.expandable-section summary {
    cursor: pointer;
    user-select: none;
    outline: none;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.expandable-section summary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.expandable-section summary::-webkit-details-marker {
    display: none;
}

.expandable-section summary::after {
    content: "▼";
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
    margin-left: auto;
}

.expandable-section:not([open]) summary::after {
    transform: rotate(-90deg);
}

.expandable-section summary::before {
    content: "📁";
    font-size: 1.2rem;
    margin-right: 0.75rem;
}

.expandable-section[open] summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.expandable-section[open] summary::before {
    content: "📂";
}

/* Page Tiles */
.page-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.page-tile {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 2rem;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 200px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.page-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-tile:hover::before {
    opacity: 1;
}

.page-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.page-tile.counter-tile {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.page-tile.weather-tile {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.tile-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.tile-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.tile-description {
    font-size: 1rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Animation for opening/closing */
.expandable-section[open] .page-tiles {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Arts and Crafts Section Styling */
.arts-and-crafts-section summary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%); /* Orange/Red gradient */
}

.arts-and-crafts-section summary:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%); /* Darker on hover */
}

/* Arts and Crafts Tiles */
.colouring-page-tile {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%) !important; /* Orange/Red gradient */
}

.colouring-page-tile:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%) !important; /* Darker on hover */
}

.sewing-page-tile {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%) !important; /* Orange/Red gradient */
}

.sewing-page-tile:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%) !important; /* Darker on hover */
}

/* Job Applications Section Styling */
.job-applications-section summary {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%); /* Dark gray gradient */
}

.job-applications-section summary:hover {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%); /* Darker on hover */
}

/* Job Applications Tiles */
.review-cv-tile {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%) !important; /* Dark gray gradient */
}

.review-cv-tile:hover {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important; /* Darker on hover */
}

.cover-letter-tile {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%) !important; /* Dark gray gradient */
}

.cover-letter-tile:hover {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important; /* Darker on hover */
}

.customise-cv-tile {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%) !important; /* Dark gray gradient */
}

.customise-cv-tile:hover {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important; /* Darker on hover */
}

/* Alternative color schemes - uncomment the one you prefer */

/* Option 1: Green Theme */
/*
.arts-and-crafts-section summary {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
}
.arts-and-crafts-section summary:hover {
    background: linear-gradient(135deg, #00a085 0%, #00b894 100%);
}
.colouring-page-tile {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%) !important;
}
.colouring-page-tile:hover {
    background: linear-gradient(135deg, #00a085 0%, #00b894 100%) !important;
}
*/

/* Option 2: Purple Theme */
/*
.arts-and-crafts-section summary {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}
.arts-and-crafts-section summary:hover {
    background: linear-gradient(135deg, #6c5ce7 0%, #5f3dc4 100%);
}
.colouring-page-tile {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%) !important;
}
.colouring-page-tile:hover {
    background: linear-gradient(135deg, #6c5ce7 0%, #5f3dc4 100%) !important;
}
*/

/* Option 3: Teal Theme */
/*
.arts-and-crafts-section summary {
    background: linear-gradient(135deg, #00cec9 0%, #00b894 100%);
}
.arts-and-crafts-section summary:hover {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
}
.colouring-page-tile {
    background: linear-gradient(135deg, #00cec9 0%, #00b894 100%) !important;
}
.colouring-page-tile:hover {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%) !important;
}
*/

/* Responsive adjustments */
@media (max-width: 768px) {
    .home-container {
        padding: 1rem;
    }
    
    .welcome-section h1 {
        font-size: 2rem;
    }
    
    .expandable-section summary {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .page-tiles {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .loading-content {
        margin: 1rem;
        padding: 1.5rem;
    }
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none; /* keep hidden unless Blazor shows it on error */
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}