/* ========== GLOBAL RESET & BASE ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000f24;              /* body background */
    color: #e0e8f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== HEADER ========== */
.site-header {
    background: #000c1b;              /* header background */
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    width: 100%;
    border-bottom: 1px solid #0a1f44; /* subtle blue border */
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #38bdf8;                  /* logo color */
}

.header-nav {
    display: flex;
    gap: 25px;
}

.header-nav a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: #38bdf8;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 1100px;
    width: 100%;
    background: #001233;               /* card surface – deeper blue */
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    align-self: flex-start;
    border: 1px solid #0a1f44;
}

.container .subtitle {
    margin-left: 3.4em;
    color: #94a3b8;
}

h1 {
    margin-top: 0;
    color: #e2eafc;
    display: flex;
    align-items: baseline;
    gap: 0.3em;
}

h1 .heading-text {
    display: block;
    text-indent: 0;
}

.container p {
    color: #94a3b8;
}

/* ========== UPLOAD AREA ========== */
.upload-area {
    margin: 25px 0 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

input[type="file"] {
    padding: 8px;
    border: 1px solid #1a3466;
    border-radius: 8px;
    background: #001a40;
    color: #cbd5e1;
}

input[type="file"]::file-selector-button {
    background: #001430;              /* deeper blue for contrast */
    color: #cbd5e1;
    border: 1px solid #1a3466;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.2s;
}

input[type="file"]::file-selector-button:hover {
    background: #0a3a5c;              /* visible hover */
}

button, .download-btn, .tool-btn {
    background: #1385b6;              /* main button color */
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    border: 1px solid #0d6b8f;
    text-decoration: none;
    display: inline-block;
}

button:hover, .download-btn:hover, .tool-btn:hover {
    background: #4ecaff;              /* light cyan hover */
    border-color: #38bdf8;
}

button:disabled {
    background: #1e3a5f;              /* muted blue */
    border-color: #2e4a6e;
    cursor: not-allowed;
    color: #b0c5d0;
}

.tool-btn.active {
    background: #f97316;              /* orange active state */
    border-color: #ca4d09;
    color: white;
}

/* ========== STATUS ========== */
.status {
    margin: 15px 0;
    padding: 12px;
    border-radius: 8px;
    background: #001a40;
    color: #bccfe0;
    border: 1px solid #1a3466;
}

/* ========== ZOOMABLE CANVAS ========== */
.canvas-wrapper {
    margin-top: 25px;
}

.canvas-container {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border: 1px solid #1a3466;
    border-radius: 12px;
    /* Transparency grid — dark blue tones */
    background: repeating-conic-gradient(#001a40 0% 25%, #001433 0% 50%) 50% / 20px 20px;
    position: relative;
    cursor: grab;
    user-select: none;
}

.canvas-container:active {
    cursor: grabbing;
}

.canvas-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
}

/* ========== ZOOM CONTROLS ========== */
.zoom-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 0 5px;
}

.zoom-label {
    font-size: 18px;
}

#zoomSlider {
    flex: 1;
    cursor: pointer;
    accent-color: #38bdf8;           /* sky blue slider */
    background: #001a40;
}

.zoom-value {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    color: #94a3b8;
}

/* ========== TOOLBAR ========== */
.toolbar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
    background: #001a40;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid #1a3466;
}

.brush-size-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    color: #94a3b8;
}

.brush-size-control input[type="range"] {
    width: 120px;
    accent-color: #38bdf8;           /* matching slider */
}

/* ========== BRUSH CURSOR ========== */
.brush-cursor {
    position: absolute;
    pointer-events: none;
    border: 2px solid rgba(255, 111, 0, 0.9);      /* vivid orange */
    border-radius: 50%;
    background: rgba(255, 115, 0, 0.35);            /* semi-transparent orange */
    box-shadow: 0 0 10px rgba(255, 115, 0, 0.5), inset 0 0 4px rgba(0,0,0,0.3);
    display: none;
    z-index: 10;
    transform: translate(-50%, -50%);
    transition: width 0.08s, height 0.08s;
}

/* ========== DOWNLOAD ========== */
.download-area {
    margin-top: 20px;
    text-align: center;
}

.download-btn {
    background: #059669;              /* emerald green */
    border-color: #047857;
}
.download-btn:hover {
    background: #047857;
    border-color: #046c4e;
}

/* ========== FOOTER ========== */
.site-footer {
    background: #000c1b;              /* matches header exactly */
    color: #94a3b8;
    padding: 30px 0;
    width: 100%;
    border-top: 1px solid #0a1f44;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 14px;
    opacity: 0.85;
}

.footer-social {
    display: flex;
    gap: 18px;
}

.social-icon {
    color: #64748b;                  /* cool blue-grey – not plain grey */
    font-size: 20px;
    transition: color 0.2s, transform 0.2s;
    text-decoration: none;
}

.social-icon:hover {
    color: #38bdf8;
    transform: translateY(-2px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .header-nav {
        gap: 15px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .container {
        padding: 20px;
    }
}

/* ========== ABOUT PAGE ========== */
.about-container h1 {
    display: block;
    font-size: 1.6em;
    color: #e2eafc;
    margin-bottom: 0.3em;
}

.about-section {
    margin-top: 2em;
}

.about-section h2 {
    color: #38bdf8;
    font-size: 1.2em;
    margin-bottom: 0.5em;
    border-bottom: 1px solid #1a3466;
    padding-bottom: 0.4em;
}

.about-section h3 {
    color: #e2eafc;
    font-size: 1em;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.3em;
}

.about-section p {
    color: #bccfe0;
    line-height: 1.5;
    margin-bottom: 0.8em;
    font-size: 0.95em;
}

.effective-date {
    color: #94a3b8 !important;
    font-size: 0.85em;
    margin-bottom: 1.2em !important;
}