/* --- Style Enhancements --- */

body {
    font-family: 'Arial', sans-serif;
    margin: 20px;
    padding: 20px;
    background-color: #f0f8ff; /* Warna lebih terang */
    color: #333;
}

h1 {
    color: #2d8b4c;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Tambah shadow */
}

input[type="file"] {
    margin-bottom: 20px;
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    border-color: #2d8b4c;
    box-shadow: 0px 2px 8px rgba(45, 139, 76, 0.2);
}

button {
    cursor: pointer;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.primary-button {
    background-color: #4caf50;
    color: white;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary-button i {
    margin-right: 8px; /* Ikon di depan teks */
}

.primary-button:hover {
    background-color: #45a049;
    transform: scale(1.05); /* Sedikit efek zoom */
}

.view-button {
    background-color: #008cba;
    color: white;
    padding: 10px 15px;
    margin-right: 10px;
}

.view-button:hover {
    background-color: #007bb5;
    transform: scale(1.05);
}

#message {
    color: green;
    font-weight: bold;
    margin: 10px 0;
    text-align: center;
}

#viewMode {
    margin-bottom: 20px;
    text-align: center;
}

#fileContainer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Lebih besar */
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.file-item:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    transform: scale(1.03); /* Efek membesar saat hover */
}

.icon-view .file-item {
    flex-direction: column;
    width: 150px;
    height: 180px;
    justify-content: center;
    text-align: center;
}

.file-item img {
    width: 40px; /* Ukuran ikon */
    height: 40px;
    margin-right: 10px;
}

.icon-view .file-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.file-item button {
    background-color: #e74c3c;
    color: white;
    padding: 7px 15px;
	margin-top: 20px;
}

.file-item button:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

/* Responsivitas */
@media (max-width: 768px) {
    .icon-view .file-item {
        width: 100px;
        height: 130px;
    }

    .icon-view .file-item img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    #fileContainer {
        flex-direction: column;
    }

    .file-item {
        flex-direction: column;
        text-align: center;
    }

    .icon-view .file-item {
        width: 90px;
        height: 120px;
    }

    .icon-view .file-item img {
        width: 50px;
        height: 50px;
    }
}
