/* =======================
   RESET BÁSICO
======================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

/* =======================
   BODY E CONTAINER
======================= */
body {
    background: #121212;
    color: #eee;
    line-height: 1.6;
    padding: 10px;
    margin: 0;
}

.container {
    width: 95%;
    max-width: 480px;
    /* Limite para celular */
    margin: 20px auto;
    padding: 10px;
}

/* =======================
   HEADER E NAV
======================= */
header {
    background: #1f1f1f;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

header h1 {
    color: #00e676;
    font-size: 22px;
}

/* NAV */
nav {
    background: #222;
    display: flex;
    flex-direction: column;
    /* Empilha no celular */
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

nav a {
    color: #eee;
    text-decoration: none;
    font-weight: bold;
    padding: 12px 15px;
    border-radius: 6px;
    text-align: center;
    width: 90%;
    transition: 0.3s;
}

nav a:hover {
    background: #00e676;
    color: #121212;
}

/* =======================
   TITULOS
======================= */
h2,
h3 {
    color: #00c853;
    margin-bottom: 10px;
}

/* =======================
   CARDS DE APLICATIVOS
======================= */
.app {
    background: #1e1e1e;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s;
}

.app:hover {
    transform: translateY(-3px);
}

.app h3 {
    font-size: 1.2em;
    margin-bottom: 8px;
}

.app p {
    font-size: 1em;
}

.info {
    font-size: 0.95em;
    color: #ccc;
    margin-top: 5px;
}

/* =======================
   BOTÕES
======================= */
.btn,
.btn-home {
    display: block;
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn {
    background: #00c853;
    color: #fff;
}

.btn:hover {
    background: #00e676;
    transform: translateY(-2px);
}

.btn-edit {
    background: #2196F3;
    color: white;
}

.btn-edit:hover {
    background: #42a5f5;
    transform: translateY(-2px);
}

.btn-delete {
    background: #e53935;
    color: white;
}

.btn-delete:hover {
    background: #ef5350;
    transform: translateY(-2px);
}

.btn-download {
    background: #00c853;
    color: white;
}

.btn-download:hover {
    background: #00e676;
    transform: translateY(-2px);
}

.btn-home {
    background: #ffa000;
    color: white;
}

.btn-home:hover {
    background: #ffc107;
    color: #121212;
    transform: translateY(-2px);
}

/* =======================
   BARRA DE PROGRESSO
======================= */
.progress-container {
    width: 100%;
    background: #333;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 15px;
    height: 30px;
}

.progress-bar {
    height: 30px;
    width: 0%;
    background: #00c853;
    text-align: center;
    color: white;
    line-height: 30px;
    font-weight: bold;
    transition: width 0.3s;
}

/* =======================
   FORMULÁRIOS
======================= */
input[type="text"],
input[type="file"],
textarea,
button {
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: none;
    font-size: 1em;
}

/* =======================
   RESPONSIVO PARA CELULARES
======================= */
@media screen and (max-width: 768px) {
    .container {
        padding: 12px;
    }

    h2,
    h3 {
        font-size: 1.15em;
    }

    .app {
        padding: 16px;
    }

    nav a {
        font-size: 1em;
        padding: 12px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        width: 95%;
        padding: 10px;
    }

    h2 {
        font-size: 1.1em;
    }

    h3 {
        font-size: 1em;
    }

    p,
    .info {
        font-size: 1em;
    }

    nav a {
        font-size: 1em;
        padding: 14px;
        width: 95%;
    }

    .btn,
    .btn-home,
    .btn-edit,
    .btn-delete,
    .btn-download {
        font-size: 1em;
        padding: 16px;
    }

    .app {
        padding: 18px;
    }

    input[type="text"],
    input[type="file"],
    textarea,
    button {
        font-size: 1em;
        padding: 14px;
    }
}