/* assets/css/styles.css */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Reset some basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(-45deg, #e0f7fa, #ffffff, #e0f7fa, #ffffff);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Gradient Animation */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 100%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 0%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Navbar Styles */
.navbar {
    background-color: #008080 !important; /* Updated Primary Color */
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar-brand img {
    border-radius: 5px;
    max-width: 100%;
    height: auto;
}

.navbar-nav .nav-item .nav-link {
    color: white !important;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-item .nav-link:hover {
    color: #ffcc00 !important; /* Accent Color */
}

.navbar-nav .dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.navbar-nav .dropdown-item {
    transition: background-color 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
    background-color: #f1f1f1;
}

.navbar-nav .nav-item .nav-link img.avatar {
    border: 2px solid #fff;
    border-radius: 50%;
}

/* Notification Badge */
.nav-link .badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    font-size: 0.6rem;
}

/* Search Bar Styles */
.navbar .form-control {
    border-radius: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar .form-control:focus {
    border-color: #ffcc00; /* Accent Color */
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
}

/* Container Styles */
.container {
    flex: 1;
    position: relative;
    z-index: 2;
}

/* Wrapper Styles */
.wrapper {
    width: 90%;
    max-width: 500px;
    margin: 100px auto 50px auto; /* Adjusted top margin to account for fixed navbar */
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for the wrapper */
.wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 1em;
}

.form-control:focus {
    border-color: #008080; /* Updated Primary Color */
    box-shadow: 0 0 5px rgba(0, 128, 128, 0.2);
    outline: none;
}

.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.2) !important;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.85em;
    margin-top: 5px;
}

/* Button Styles */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: #008080; /* Updated Primary Color */
    color: white;
}

.btn-primary:hover {
    background-color: #006666; /* Darker Shade for Hover */
    transform: translateY(-2px);
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

.btn-outline-light {
    color: white;
    border-color: #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: #008080; /* Updated Accent Color */
    border-color: #fff;
}

/* Alert Styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    animation: fadeIn 0.5s ease-out;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-success .fas {
    margin-right: 10px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-danger .fas {
    margin-right: 10px;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-info .fas {
    margin-right: 10px;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-warning .fas {
    margin-right: 10px;
}

/* Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Link Styles */
a {
    color: #008080; /* Updated Link Color */
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

/* Password Strength Indicator */
.password-strength {
    height: 5px;
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-top: 5px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    background-color: #dc3545;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-text {
    margin-top: 5px;
    font-size: 0.85em;
    color: #555;
}

.password-strength-bar.weak {
    background-color: #dc3545;
}

.password-strength-bar.medium {
    background-color: #ffc107;
}

.password-strength-bar.strong {
    background-color: #28a745;
}

/* Show/Hide Password Toggle */
.password-toggle {
    position: absolute;
    top: 38px;
    right: 15px;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #008080; /* Updated Hover Color */
}

/* Tooltip Styles */
.tooltip-inner {
    background-color: #008080; /* Updated Tooltip Background */
    color: #fff;
    border-radius: 4px;
    font-size: 0.85em;
}

.tooltip.bs-tooltip-right .tooltip-arrow::before,
.tooltip.bs-tooltip-left .tooltip-arrow::before,
.tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-color: #008080; /* Updated Tooltip Arrow Color */
}

/* Notification Badge */
.badge {
    font-size: 0.6em;
    padding: 0.4em 0.6em;
}

/* Responsive Design */
@media (max-width: 600px) {
    .wrapper {
        padding: 20px;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    /* Adjust search bar on small screens */
    .navbar-collapse form {
        width: 100%;
    }

    .navbar-collapse form .form-control {
        margin-bottom: 10px;
    }
}

/* Additional Sections (e.g., Notifications, Dashboard) */
.notifications-container,
.dashboard-container,
.home-container,
.news-container {
    width: 90%;
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Footer Styling */
footer {
    padding: 20px 0;
    background: #008080; /* Updated Footer Background */
    color: #fff;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Ensure the footer stays at the bottom */
body {
    display: flex;
    flex-direction: column;
}

.container, .content {
    flex: 1;
}

/* Responsive Adjustments for Wrapper */
@media (max-width: 768px) {
    .wrapper {
        margin: 80px auto 30px auto;
    }
}
