:root {
    --bg: #0a0a0a;
    --card: #141414;
    --accent: #7fffd4; 
    --text: #ededed;
    --text-dim: #888;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.minimal-header {
    text-align: center;
    padding: 60px 20px 40px;
}

.minimal-header h1 { 
    font-weight: 600; 
    letter-spacing: -1px; 
    margin: 0; 
    font-size: 2.5rem; 
}
.minimal-header span { 
    color: var(--accent); 
}
.minimal-header p {
     color: var(--text-dim); 
     font-weight: 300;
      font-size: 0.9rem; 
      margin-top: 10px; 
    }

.app-container {
     width: 95%; 
     max-width: 1100px; 
     display: flex; 
     flex-direction: column; 
     align-items: center; 
    }

.upload-box {
    border: 1px dashed #333;
    background: var(--card);
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    max-width: 500px;
}

.upload-box:hover { 
    border-color: var(--accent);
     background: #1a1a1a;
     }
.upload-box span { 
    color: var(--accent); 
    text-decoration: underline;
 }

.hidden { 
    display: none;
 }

/* Grid Responsivo */
.grid-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 1000px;
}

.controls {
    background: var(--card);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    border: 1px solid #222;
}

.preview-item {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-image { 
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        height: 160px;
     }


.card-image img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     }

.btn-delete {
    position: absolute; top: 8px; right: 8px;
    background: rgba(255, 60, 60, 0.9);
    color: white; 
    border: none; 
    border-radius: 50%;
    width: 26px; 
    height: 26px;
    cursor: pointer;
    font-weight: bold;
}

.card-info p {
    font-size: 0.8rem; 
    color: var(--text-dim);
    margin: 12px 0;
    overflow: hidden; 
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-download {
    display: block; 
    text-align: center; 
    border: 1px solid var(--accent);
    color: var(--accent); 
    text-decoration: none;
    padding: 8px;
    border-radius: 6px; 
    font-size: 0.85rem; 
    transition: 0.3s;
}

.btn-download:hover { 
    background: var(--accent); 
    color: #000; 
}

input[type=range] { 
    accent-color: var(--accent);
    cursor: pointer;
 }

.btn-outline {
    background: transparent; 
    border: 1px solid #444;
    color: var(--text-dim);
    padding: 10px 20px; 
    border-radius: 8px; 
    cursor: pointer;
}

.btn-outline:hover { 
    border-color: var(--text); 
    color: var(--text);
 }


.app-footer {
    margin-top: auto; /* Empuja el footer al fondo si hay poco contenido */
    padding: 40px 20px;
    width: 80%;
    /* border-top: 1px solid #1a1a1a; */
    background: var(--bg);
    text-align: center;
}

.footer-content p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 5px 0;
}

.footer-content strong {
    color: var(--accent);
    font-weight: 600;
}

.footer-links {
    margin: 15px 0;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.3s;
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}



.copyright {
    font-size: 0.7rem !important;
    opacity: 0.4;
}


@media (max-width:768px) {
    .upload-box {
        width: 60%;
    }
}