/* ZethalMC — Discord Timestamp Generator (matches assets/css/portfolio.css) */

body {
    padding: 60px 20px;
}

.container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    margin: 0 auto 24px auto;
}

#container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 20px;
}

.controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.controls-row span {
    color: var(--text-muted);
}

h1 {
    color: var(--text);
    font-size: 2.2em;
    margin: 0 0 10px 0;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    color: var(--accent-bright);
    font-size: 1.2em;
    margin: 0;
}

h3,
h5 {
    color: var(--text);
}

p {
    color: var(--text-muted);
}

input,
select,
button {
    background: var(--surface-alt);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

input:focus,
select:focus,
button:focus {
    outline: none;
    border-color: var(--accent-bright);
}

input[type="date"],
input[type="time"] {
    color: var(--text);
    color-scheme: dark;
}

button {
    font-weight: 600;
    padding: 10px 18px;
    font-size: 0.95rem;
    background: linear-gradient(180deg, var(--accent-bright), var(--accent));
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(23, 163, 152, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

th,
td {
    padding: 12px;
    text-align: left;
    border: 1px solid var(--border);
    color: var(--text);
}

th {
    background: var(--surface-alt);
    color: var(--text);
    font-weight: 600;
}

td {
    background: var(--surface);
}

td input[type="text"] {
    width: 85%;
    padding: 8px;
    font-size: 0.9rem;
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 5px;
    font-family: "Courier New", monospace;
}

td input[type="text"]:focus {
    color: var(--text);
    border-color: var(--accent-bright);
}

td button {
    padding: 8px 14px;
    font-size: 0.85rem;
}

.note {
    font-size: 0.95em;
    color: var(--text-muted);
    font-style: italic;
}

section {
    margin-bottom: 30px;
}

#code {
    font-family: monospace;
    background: var(--bg);
    color: var(--text);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

i,
.fa-solid,
.fa-regular {
    color: var(--accent-bright);
    transition: color 0.2s ease;
}

button i,
button .fa-solid,
button .fa-regular {
    color: #fff;
    margin-right: 6px;
}

#notifPopup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--surface-alt);
    color: var(--text);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid var(--accent-bright);
    display: none;
    z-index: 1000;
    transition: opacity 0.5s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.feedback-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(180deg, var(--accent-bright), var(--accent));
    color: #fff;
    padding: 14px 28px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    z-index: 1000;
    border: none;
    margin: 10px;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(23, 163, 152, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feedback-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(23, 163, 152, 0.45);
}

@media (max-width: 600px) {
    .feedback-button {
        position: relative;
        display: block;
        width: calc(100% - 40px);
        font-size: 1.1rem;
        margin: 20px auto;
    }
}

.popup {
    display: none;
    position: fixed;
    bottom: 70px;
    right: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    z-index: 1001;
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    visibility: hidden;
}

.popup.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.popup h1 {
    margin-bottom: 20px;
    color: var(--text);
    text-align: center;
    font-size: 1.6em;
}

.popup label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: left;
    width: 100%;
}

.popup input,
.popup textarea {
    width: calc(100% - 22px);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    font-size: 1rem;
    background: var(--surface-alt);
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.popup input:focus,
.popup textarea:focus {
    outline: none;
    border-color: var(--accent-bright);
}

.popup button {
    width: 100%;
}

.notification {
    margin-top: 20px;
    background: var(--surface-alt);
    color: var(--text);
    padding: 14px 20px;
    border-radius: 8px;
    border: 1px solid var(--accent-bright);
    opacity: 0;
    display: none;
    transition: opacity 0.4s ease-out;
    font-weight: 600;
    text-align: center;
}

.notification.show {
    display: block;
    opacity: 1;
    transition: opacity 0.4s ease-in;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
}

.checkbox-container {
    display: flex;
    align-items: center;
    padding: 14px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: border-color 0.2s ease;
    position: relative;
}

.checkbox-container input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.checkbox-container:hover {
    border-color: var(--accent-bright);
}

.checkbox-container input:checked~.label-text {
    color: var(--accent-bright);
    font-weight: 700;
}

.checkbox-container.checked {
    border-color: var(--accent-bright) !important;
    background: var(--surface) !important;
}

.label-text {
    color: var(--text);
    cursor: pointer;
    transition: color 0.2s ease;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 600px) {
    .container {
        padding: 18px;
    }

    h1 {
        font-size: 1.7em;
    }

    h2 {
        font-size: 1.1em;
    }

    input,
    select,
    button {
        width: 100%;
        padding: 10px;
        font-size: 1rem;
    }

    td input[type="text"] {
        max-width: 85%;
    }

    td button {
        width: 100%;
    }

    .popup {
        width: 90%;
        padding: 20px;
        bottom: auto;
        top: 50%;
        right: 50%;
        transform: translate(50%, -50%);
    }

    .popup.show {
        transform: translate(50%, -50%);
    }

    .feedback-button {
        width: calc(100% - 20px);
        margin: 20px 10px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #container {
        flex-direction: column;
        align-items: stretch;
    }

    .controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .use-current-time {
        margin-top: 10px;
        width: 100%;
    }

    table {
        font-size: 0.9em;
    }

    th,
    td {
        padding: 8px;
    }
}
