@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #1a1a2e;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-light: #f0f0f0;
    --text-muted: #b0b0b0;
    --primary-gradient: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    --button-copy-bg: #2ecc71;
    --button-copy-hover: #27ae60;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.background-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.background-effect::before,
.background-effect::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
}

.background-effect::before {
    background: linear-gradient(135deg, #6F2CFF 0%, #2575fc 100%);
    width: 300px;
    height: 300px;
    top: 10%;
    left: 15%;
    transform: translate(-50%, -50%);
}

.background-effect::after {
    background: linear-gradient(135deg, #00C4FF 0%, #00ff80 100%);
    width: 400px;
    height: 400px;
    bottom: 5%;
    right: 10%;
    transform: translate(50%, 50%);
}

.container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 650px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: var(--text-light);
}

.app-header .logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 8px;
}

.app-header .brand-name {
    font-size: 24px;
    font-weight: 700;
}

h1 {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 2.2em;
    line-height: 1.3;
}

#shorten-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

#url-input {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid var(--glass-border);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border-radius: 12px;
    font-size: 17px;
    transition: border-color 0.3s, background-color 0.3s;
    box-sizing: border-box;
}

#url-input::placeholder { color: var(--text-muted); }

#url-input:focus {
    outline: none;
    border-color: #6a11cb;
    background-color: rgba(255, 255, 255, 0.1);
}

.expiration-section {
    width: 100%;
    text-align: left;
    padding: 20px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background-color: rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.expiration-section h2 {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-light);
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.options-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.option-button {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-button:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-light);
}

.option-button.active {
    background-color: var(--text-light);
    color: var(--bg-dark);
    border-color: var(--text-light);
    font-weight: 700;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.submit-button {
    width: 100%;
    padding: 18px 30px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.result-container {
    margin-top: 30px;
    text-align: left;
}

.result-container h2 {
    font-size: 1.4em;
    color: var(--text-light);
    margin-bottom: 15px;
}

.result-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 12px 20px;
    border-radius: 12px;
    margin-top: 10px;
}

#short-url {
    font-size: 1.1em;
    color: #00C4FF;
    text-decoration: none;
    word-break: break-all;
    font-weight: 500;
}

#short-url:hover { text-decoration: underline; }

#copy-button {
    background-color: var(--button-copy-bg);
    font-size: 15px;
    padding: 10px 18px;
    margin-left: 15px;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}

#copy-button:hover { background-color: var(--button-copy-hover); }

#copy-feedback {
    margin-top: 15px;
    color: var(--button-copy-bg);
    font-weight: 600;
    height: 20px;
    text-align: center;
    font-size: 0.9em;
}

.hidden { display: none; }


/* --- NOVOS ESTILOS PARA PÁGINAS DE STATUS (LINK EXPIRADO, ETC) --- */
.status-page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.status-icon {
    color: var(--text-light);
    opacity: 0.8;
}

.status-message {
    font-size: 1.2em;
    color: var(--text-muted);
    max-width: 80%;
}

.cta-button {
    display: inline-block;
    width: 100%;
    max-width: 300px;
    padding: 16px 30px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-size: 17px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    box-sizing: border-box;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}


@media (max-width: 768px) {
    .container {
        padding: 25px;
        margin: 20px;
    }
    h1 { font-size: 1.8em; }
    .result-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    #copy-button {
        width: 100%;
        margin-left: 0;
    }
}