/* Reset & General */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #014421, #0066cc); /* hijau tua ke biru */
    color: #fff;
    text-align: center;
}

.container, .index-container {
    max-width: 400px;
    width: 90vw;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px 30px 60px 30px;
    box-shadow: 0 8px 40px rgba(1, 68, 33, 0.35);
    backdrop-filter: blur(10px);
}

.profile-pic {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3.5px solid #00cc66; /* garis hijau muda */
    margin: 0 auto 25px;
    display: block;
}

h2 {
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 0.6px;
    margin: 0 0 10px 0;
}

.description {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.4;
    margin-bottom: 40px;
    padding: 0 5px;
}

/* Link Buttons */
.links {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0 15px;
}

.link-button {
    background: white;
    color: #0066cc;
    border-radius: 14px;
    padding: 18px 0;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 6px 15px rgba(0, 102, 204, 0.3);
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
    user-select: none;
}

.link-button:hover {
    background: #0066cc;
    color: white;
    box-shadow: 0 8px 22px rgba(0, 102, 204, 0.6);
}

/* Additional styles from original CSS for admin and login pages */
.login-container, .admin-container {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    color: #333;
    text-align: left;
}

.admin-container h2 {
    margin-top: 0;
    font-weight: 700;
    font-size: 30px;
    margin-bottom: 10px;
}

.logout-btn {
    float: right;
    background:#0066cc;
    color:white;
    padding: 8px 15px;
    text-decoration:none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: #004c99;
}

.add-link-section, .links-list-section {
    margin-top: 40px;
}

.add-link-section h3, .links-list-section h3 {
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 15px;
}

.form-inline {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.form-inline input[type="text"],
.form-inline input[type="url"],
input[type="text"], input[type="password"], input[type="url"] {
    flex: 1 1 250px;
    width: calc(100% - 20px);
    padding: 10px 14px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

.checkbox-label {
    font-size: 14px;
    user-select: none;
}

.form-inline button, button {
    background: #00cc66;
    border: none;
    color: white;
    font-weight: 700;
    padding: 12px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.form-inline button:hover, button:hover {
    background: #009944;
}

.error {
    color: red;
    margin-bottom: 15px;
}

table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

a {
    color: #9b59b6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.links-table thead th {
    background-color: #0066cc;
    color: white;
    font-weight: 700;
}

.links-table tbody tr:nth-child(even) {
    background-color: #f7f7f7;
}

.links-table a.toggle-link-btn {
    color: #0066cc;
    font-weight: 600;
}

.links-table a.toggle-link-btn:hover {
    text-decoration: underline;
}

.edit-btn {
    background: #0099ff;
    border: none;
    color: white;
    padding: 7px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.edit-btn:hover {
    background: #0066cc;
}

/* Popup form for editing */
.popup-form {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-form.hidden {
    display: none;
}

.popup-content {
    background: white;
    padding: 30px 35px;
    border-radius: 14px;
    width: 430px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: #333;
}

.popup-content h3 {
    margin-top: 0;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 20px;
    color: #0066cc;
}

.popup-content label {
    display: block;
    margin: 15px 0 6px;
    font-weight: 600;
}

.popup-content input[type="text"],
.popup-content input[type="url"] {
    width: 100%;
    padding: 10px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.popup-content input[type="checkbox"] {
    margin-right: 6px;
    vertical-align: middle;
}

.popup-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.popup-buttons button {
    padding: 10px 25px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    transition: background 0.3s ease;
}

.popup-buttons button[type="submit"] {
    background: #00cc66;
    color: white;
}

.popup-buttons button[type="submit"]:hover {
    background: #009944;
}

.cancel-btn {
    background: #ddd;
    color: #555;
}

.cancel-btn:hover {
    background: #bbb;
}

.move-btn {
    font-size: 18px;
    margin: 0 6px;
    text-decoration: none;
    color: #0066cc;
    font-weight: bold;
    user-select: none;
}

.move-btn:hover {
    color: #004c99;
    cursor: pointer;
}

/* Responsive for index page */
@media (max-width: 480px) {
    .container, .index-container {
        width: 90vw;
        padding: 30px 20px 50px 20px;
        max-width: 400px;
    }

    .profile-pic {
        width: 110px;
        height: 110px;
        border-width: 3px;
        margin-bottom: 20px;
    }

    h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .description {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .link-button {
        font-size: 16px;
        padding: 14px 0;
        border-radius: 12px;
    }
}

@media (min-width: 481px) {
    .container, .index-container {
        max-width: 350px;
        padding: 40px 30px 60px 30px;
    }

    .profile-pic {
        width: 130px;
        height: 130px;
        border-width: 3.5px;
        margin-bottom: 25px;
    }

    h2 {
        font-size: 28px;
    }

    .description {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .link-button {
        font-size: 18px;
        padding: 18px 0;
        border-radius: 14px;
    }
}
    