/* Reset Dasar dan Font */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7; /* Latar belakang abu-abu muda */
    color: #333;
}

/* HEADER dan Navigasi */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background-color: #fff; /* Latar belakang putih */
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: #3498db; /* Biru muda */
}

.logo .fa-heart {
    color: #e74c3c; /* Merah */
    margin-right: 3px;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    padding: 10px 0;
    transition: color 0.3s;
}

.main-nav a:hover, .main-nav .active a {
    color: #3498db;
    border-bottom: 2px solid #3498db;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    padding: 5px 10px;
}

.signup-btn {
    text-decoration: none;
    background-color: #3498db; /* Biru */
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
}

.menu-icon {
    background: none;
    border: none;
    font-size: 20px;
    color: #555;
    cursor: pointer;
}

/* KONTEN UTAMA */
.main-content {
    text-align: center;
    padding: 80px 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 5px;
}

.highlight {
    font-weight: 600;
    color: #e74c3c; /* Merah untuk penekanan jenis file */
}

/* Tombol Pilih Gambar */
.select-box {
    display: flex;
    justify-content: center;
    align-items: stretch;
    margin: 40px 0 15px;
}

.select-button {
    background-color: #3498db; /* Biru terang */
    color: white;
    font-size: 20px;
    font-weight: 600;
    padding: 20px 60px;
    border: none;
    border-radius: 8px 0 0 8px; /* Sudut kiri melengkung */
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.4);
}

.select-button:hover {
    background-color: #2980b9;
}

.select-icons {
    display: flex;
    flex-direction: column;
    gap: 1px; /* Jarak antar ikon */
}

.icon-btn {
    background-color: #e6e6e6; /* Abu-abu muda untuk ikon */
    color: #555;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    height: 50%; /* Memastikan ikon mengisi tinggi kotak */
}

.icon-btn:hover {
    background-color: #ccc;
}

/* Atur sudut melengkung untuk tombol ikon */
.select-icons .icon-btn:first-child {
    border-radius: 0 8px 0 0;
}
.select-icons .icon-btn:last-child {
    border-radius: 0 0 8px 0;
}

.drop-text {
    font-size: 16px;
    color: #777;
}

/* FOOTER (Hanya untuk menempatkan info copyright di bawah) */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: left;
    padding: 10px 40px;
    font-size: 12px;
    color: #999;
    background-color: #fff;
    border-top: 1px solid #eee;
}

/* TATA LETAK UTAMA */
.main-layout {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.upload-area {
    flex: 2; /* Mengambil 2/3 ruang */
    min-height: 500px;
}

.options-sidebar {
    flex: 1; /* Mengambil 1/3 ruang */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.options-sidebar h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
}

/* OPSI TAB */
.option-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    background: none;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: color 0.3s, border-bottom 0.3s;
}

.tab-button.active {
    color: #3498db;
    border-bottom: 2px solid #3498db;
    font-weight: 600;
}

.option-content {
    display: none;
    padding-top: 10px;
}

.option-content.active {
    display: block;
}

/* INPUT RESIZE DINAMIS */
.resize-input-group {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    background-color: #fafafa;
}

.resize-input-group label:first-child {
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
    color: #3498db;
}

.form-input-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.form-input-row label {
    font-size: 14px;
    color: #555;
    flex-basis: 40%;
}

.form-input-row input[type="number"] {
    flex-basis: 55%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: right;
    font-size: 14px;
}

/* CHECKBOX & BUTTON PROSES */
.form-group {
    margin: 15px 0;
}

.form-group label {
    font-size: 14px;
    color: #555;
    margin-left: 5px;
}

.resize-button {
    width: 100%;
    background-color: #3498db;
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.resize-button:hover {
    background-color: #2980b9;
}

/* PRATINJAU GAMBAR */
.preview-container {
    min-height: 200px;
    border: 3px dashed #ccc;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 20px;
    padding: 20px;
}
.initial-upload-prompt {
    /* Gaya untuk prompt upload awal */
    text-align: center;
    padding: 50px 0;
}

.image-preview-item {
    border: 2px solid #ccc;
    padding: 10px;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 10px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
    background-color: #fff;
}
.image-preview-item img {
    max-width: 100%;
    max-height: 100px;
    display: block;
}
.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    line-height: 1;
    font-size: 10px;
}
