/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #0b0b0b;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1150px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
}

header h1 span {
    color: #d4af37;
    background: linear-gradient(45deg, #f3e0aa, #d4af37, #aa7c11);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: #888;
    font-size: 0.9rem;
    margin-top: 5px;
    letter-spacing: 1px;
}

/* Layout Grid */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 30px;
}

@media (max-width: 850px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* Card Style */
.card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    transition: border-color 0.3s ease;
}

.card:hover {
    border-color: rgba(212, 175, 55, 0.4);
}

.card h2 {
    font-size: 1.3rem;
    color: #e5c158;
    margin-bottom: 25px;
    font-weight: 600;
    border-left: 4px solid #d4af37;
    padding-left: 10px;
}

/* Clock & Date */
.clock-display {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.date-display {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 30px;
}

/* Input Styling */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.input-group label {
    font-size: 0.8rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.input-group input {
    background: #141414;
    border: 1px solid #333;
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

/* Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

button {
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(45deg, #d4af37, #aa7c11);
    color: #000;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #f3e0aa, #d4af37);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.08);
    color: #fff;
}

.btn-clear {
    background: transparent;
    border: none;
    color: #ff6b6b;
    font-size: 0.8rem;
}

.btn-clear:hover {
    text-decoration: underline;
}

/* Table styling */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.history-header h2 {
    margin-bottom: 0;
}

.table-responsive {
    overflow-x: auto;
    max-height: 350px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

th {
    color: #d4af37;
    border-bottom: 2px solid #222;
    padding: 14px 10px;
    font-weight: 600;
}

td {
    padding: 14px 10px;
    border-bottom: 1px solid #161616;
    color: #ccc;
}

tr:hover td {
    color: #fff;
    background: rgba(212, 175, 55, 0.02);
}
/* --- TAMBAHAN STYLE UNTUK TOGGLE PASSWORD --- */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 65px; /* Beri ruang agar teks tidak menumpuk di tombol */
}

.btn-toggle-pwd {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #d4af37; /* Warna Emas */
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-toggle-pwd:hover {
    color: #fff;
}