/* Global styles */
body {
    font-family: 'Inter', sans-serif;
    background-image: url('../images/bg2.jpg') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #d4af37 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif !important;
    color: #fff !important;
}

/* Highlight text */
.highlight {
    color: #d4af37;
}

/* Blinking på toppbar */

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
.blinking {
    animation: blink 2s linear infinite;
}

/* Blinking ved drapsforsøk */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #ffffff;
    color: #333333;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    max-width: 300px;
    animation: slideIn 0.5s ease-out, fadeOut 0.5s ease-in 4.5s;
}

.notification-icon {
    margin-right: 15px;
    font-size: 20px;
    color: #4CAF50;
}

.notification-content {
    flex-grow: 1;
}

.notification-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.notification-message {
    font-size: 14px;
    color: #666666;
}

.notification-close {
    font-size: 20px;
    color: #999999;
    cursor: pointer;
    padding: 0 5px;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.screen-flash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 0, 0, 0.3);
    z-index: 9999;
    pointer-events: none;
    animation: flash 0.2s ease-in-out 3;
}

@keyframes flash {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Sidebar styles */
.sidebar {
    background-color: rgba(15, 15, 15, 0.6);
    height: 100vh;
    padding-top: 20px;
    display: flex;
    flex-direction: column;

}

.sidebar .nav-link {
    color: #d4af37;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: #2c2c2c;
    color: #fff;
}

/* USER INFO */

.user-info {
    background-color: rgba(15, 15, 15, 0.6);  /* 60% opasitet */
    padding: 20px;
    color: #fff;
}

.profile-img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    width: 150px;
    margin: 0 auto;  /* Sentraliser wrapperen */
}

.profile-img {
    background-image: url('../images/profile-img.png') !important;
    background-size: cover;
    background-position: center;
    height: 150px;
    width: 150px;
    border-radius: 50%;
}


/* Center main content vertically */
.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    min-height: 100vh; /* Make sure the content takes the full height */
}

/* Auth Form (Login/Register) */
.auth-form {
    background-color: rgba(28, 28, 28, 0.8);
    padding: 30px;
    border-radius: 8px;
}

.form-control, .form-select {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #d4af37;
    border-radius: 0;
    color: #fff;
}

.form-control::placeholder {
    color: #d4af37;
}

/* Dashboard specific styles */
.dashboard-header {
    color: #d4af37;
}

.card {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 1.5em;
}

.card-body p {
    font-size: 1.1em;
}

/* Auth styles */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

.auth-box {
    background-color: rgba(28, 28, 28, 0.8);
    padding: 2rem;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 5 / 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-box form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-box h1 {
    color: #d4af37;
    margin-bottom: 1.5rem;
}

.auth-box .form-label {
    color: #d4af37;
}

.auth-box .form-control,
.auth-box .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #d4af37;
    color: #fff;
}

.auth-box .form-control:focus,
.auth-box .form-select:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

.auth-box .btn-primary {
    background-color: #d4af37;
    border-color: #d4af37;
    color: #1c1c1c;
}

.auth-box .btn-primary:hover {
    background-color: #c19b2e;
    border-color: #c19b2e;
}

.auth-box .btn-link {
    color: #d4af37;
}
