* {
    font-family: 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f4f6f9;
}

/* LOGIN */
.login-form {
    width: 360px;
    margin: 120px auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    /* transform: perspective(1000px) rotateX(5deg); */
}

.login-button {
width: 100%;   
}

form h2 {
    text-align: center;
    color: #2575fc;
}

input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ddd;
}


/* NAVBAR */
.navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 5px 30px 5px 30px;
    background: #4aa3df;
    color: white;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* USER ICON */
.user-square {
    width: 38px;
    height: 38px;
    border: 2px solid #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 35px;
    background: white;
    color: black;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,.3);
    min-width: 240px;            /* FIX #1: wider */
    overflow: hidden;
    z-index: 50;
}

/* SHOW ON HOVER */
.user-square:hover .dropdown {
    display: block;
}

.dropdown a, .dropdown p {
    padding: 0px 15px 0px 15px;
    display: block;
    text-decoration: none;
    color: black;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* PAGE TITLE */
.page-title {
    text-align: center;
    margin: 25px 0;
}

.page-title h1 {
    margin: 0;
    color: #5fa9dd;
    font-size: 34px;
}

/* CARD */
.card {
    background: white;
    width: 95%;
    margin: 20px auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

/* FORM */
input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.urlin-wrap {
    display: flex;
}

.fixed-domain {
    padding: 22px 0px 22px 25px;
    background: #ffffff;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
}

.urlin-wrap input {
    border-radius: 0 6px 6px 0;
}

.buttons-inline {
    display: flex;
    gap: 10px;
}

button {
    padding: 10px 18px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    background: #4aa3df;
    color: white;
    font-weight: bold;
}

button:hover {
    transform: scale(1.05);
}

/* TABLE */
.table-search {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.table-search input {
    width: 25%;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #4aa3df;
    color: white;
    padding: 10px;
    cursor: pointer;
}

td {
    padding: 8px;
    text-align: center;
}

td input {
    width: 90%;
    padding: 6px;
    border-radius: 6px;
}

/* NEW ENTRY BUTTON ALIGNMENT */
.buttons-inline {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.buttons-inline button {
    width: 120px;        /* same size */
    padding: 10px 0;
    text-align: center;
}

/* =====================
   TOAST NOTIFICATIONS
   ===================== */

#toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

.toast {
    min-width: 260px;
    margin-bottom: 10px;
    padding: 14px 18px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;                /* space between icon and text */
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 3.5s forwards;
}

/* ICON */
.toast-icon {
    font-size: 18px;
    line-height: 1;
}

/* Toast types */
.toast-success { background: #28a745; }
.toast-error   { background: #dc3545; }
.toast-info    { background: #17a2b8; }

/* Animations */
@keyframes slideIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(30px); }
}
