:root {
    --primary-blue: #0056b3;
    --light-blue: #e6f0fa;
    --dark-neutral: #333333;
    --border-color: #d1e2f3;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #f8fafc;
    color: var(--dark-neutral);
}

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, var(--light-blue) 0%, #cbdff2 100%);
}

.login-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 86, 179, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card h2 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

input {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    outline: none;
    font-size: 1rem;
}

input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

button {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: background 0.2s ease;
}

button:hover {
    background-color: #004085;
}

.navbar {
    background-color: var(--primary-blue);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    align-items: center;
}

.brand {
    font-size: 1.25rem;
    font-weight: bold;
}

.logout-btn {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--white);
    border-radius: 4px;
}

.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.creator-card, .table-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.horizontal-form {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.horizontal-form input { margin-bottom: 0; }
.horizontal-form button { width: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    text-align: left;
}

th, td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

.table-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.truncate {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}

.error, .notification {
    background: #fff0f0;
    color: #cc0000;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}
.notification {
    background: var(--light-blue);
    color: var(--primary-blue);
}

/* Tooltip System */
.copy-container {
    position: relative;
    display: inline-block;
}

.custom-tooltip {
    visibility: hidden;
    position: absolute;
    z-index: 9999;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.custom-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--primary-blue) transparent transparent transparent;
}

.custom-tooltip.show {
    visibility: visible;
    opacity: 1;
}

/* Modal Popup containers */
.modal-overlay {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.show {
    visibility: visible;
    opacity: 1;
}

.modal-card {
    background: var(--white);
    width: 90%;
    max-width: 850px;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 { margin-bottom: 0; font-size: 1.15rem; }

.modal-close {
    background: transparent;
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: auto;
    padding: 0;
    line-height: 1;
}
.modal-close:hover { color: var(--light-blue); background: transparent; }

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--light-blue);
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--border-color);
}
