/* General Resets */
body, h1, h2, h3, p, ul, li, form, input, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #f5f5f5;
}

a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Login and Register Page Styles */
.login-container {
    display: flex;
    height: 100vh;
}

.login-left, .login-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.login-left {
    background-color: #4A148C;
    color: white;
}

.login-left .login-logo img {
    width: 100px;
    margin-bottom: 20px;
}

.login-left h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.login-left p {
    font-size: 16px;
    margin-bottom: 30px;
}

.login-left footer {
    position: absolute;
    bottom: 20px;
    text-align: center;
    width: 100%;
}

.login-left footer p, .login-left footer a {
    color: white;
    margin: 5px;
    font-size: 14px;
}

.login-right {
    background-color: #f5f5f5;
}

.login-right form {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 300px;
}

.login-right form h2 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #333;
}

.login-right form p {
    margin-bottom: 20px;
    color: #777;
}

.login-right form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-right form button {
    width: 100%;
    padding: 10px;
    background-color: #4A148C;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.login-right form button:hover {
    background-color: #6A1B9A;
}

.login-right form a {
    display: block;
    text-align: right;
    margin-top: 10px;
    color: #007BFF;
}

.login-right .language-selection {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.login-right .language-selection img {
    width: 30px;
    margin: 0 5px;
    cursor: pointer;
}

.login-right .version {
    margin-top: 20px;
    color: #999;
    font-size: 12px;
    text-align: center;
}

/* Register Page Styles */
.register-container {
    display: flex;
    height: 100vh;
}

.register-left, .register-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.register-left {
    background-color: #4A148C;
    color: white;
}

.register-left .register-logo img {
    width: 100px;
    margin-bottom: 20px;
}

.register-left h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.register-left p {
    font-size: 16px;
    margin-bottom: 30px;
}

.register-left footer {
    position: absolute;
    bottom: 20px;
    text-align: center;
    width: 100%;
}

.register-left footer p, .register-left footer a {
    color: white;
    margin: 5px;
    font-size: 14px;
}

.register-right {
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.register-right form {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 600px;
}

.register-right form h2 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #333;
}

.register-right form p {
    margin-bottom: 20px;
    color: #777;
}

.register-right form .form-row {
    display: flex;
    justify-content: space-between;
}

.register-right form .form-row .form-group {
    width: 48%;
}

.register-right form .form-group {
    margin-bottom: 20px;
}

.register-right form label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.register-right form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.register-right form button {
    width: 100%;
    padding: 10px;
    background-color: #4A148C;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.register-right form button:hover {
    background-color: #6A1B9A;
}

.register-right form a {
    display: block;
    text-align: right;
    margin-top: 10px;
    color: #007BFF;
}

/* Sidebar Styles */
.sidebar {
    width: 70px;
    background-color: #0d0f21;
    color: #a1a4b0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: width 0.3s, background-color 0.3s;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* Add shadow for a floating effect */
    border-right: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border for separation */
}

.sidebar:hover {
    width: 250px;
    background-color: #15172c; /* Darker background on hover */
}

.sidebar-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.sidebar-logo {
    width: 50px;
    height: auto;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.sidebar:hover .sidebar-logo {
    width: 60px;
}

.sidebar-menu {
    list-style-type: none;
    width: 100%;
    padding-left: 0;
}

.sidebar-menu li {
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.3s;
}

.sidebar-menu a {
    color: #c5c8e6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s, padding 0.3s;
    font-size: 14px;
    position: relative;
}

.sidebar-menu a:hover {
    background-color: #2d324e; /* Subtle hover effect */
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.sidebar-menu a i {
    margin-right: 10px;
    min-width: 20px;
    text-align: center;
    font-size: 18px;
}

.sidebar-menu a span {
    display: none;
    transition: opacity 0.3s;
}

.sidebar:hover .sidebar-menu a span {
    display: inline;
    opacity: 1;
}

.sidebar-menu a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 80%;
    background-color: #00d9ff; /* Accent color */
    border-radius: 2px;
}

/* Main Content */
.main-content {
    margin-left: 70px; /* Initial sidebar width */
    padding: 20px;
    transition: margin-left 0.3s;
}

.sidebar:hover ~ .main-content {
    margin-left: 250px; /* Expanded sidebar width on hover */
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0; /* Start at the left edge */
    width: 97%; /* Adjusted header width */
    height: 50px; /* Shorter header height */
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    z-index: 999; /* Keep header above the sidebar */
    transition: left 0.3s, width 0.3s;
}

.sidebar:hover ~ header {
    left: 0; /* Keep aligned with the expanded sidebar */
    width: 97%; /* Maintain the 97% width when sidebar is expanded */
}

/* Adjust content position based on the fixed header */
.content {
    margin-top: 50px; /* Match the shorter header height */
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background-color: #fff;
    padding: 10px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
    position: relative;
}

header .search-bar {
    flex: 1;
    display: flex;
    align-items: center;
}

header .search-bar input {
    width: 40%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-left: 10px;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-btn {
    background: none;
    border: none;
    margin-left: 10px;
    cursor: pointer;
}

.header-btn img.header-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.header-btn i.fas.fa-tools,
.header-btn i.fas.fa-plus {
    font-size: 24px;
    color: #007BFF;
}

.header-btn:hover i.fas.fa-tools,
.header-btn:hover i.fas.fa-plus {
    color: #007BFF;
}

.content {
    display: flex;
    justify-content: space-between;
    margin-left: 70px;
}

.sidebar:hover ~ .content {
    margin-left: 250px;
}

.welcome-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    width: 65%;
    box-sizing: border-box;
}

.welcome-box h2 {
    color: #333;
}

.welcome-box p {
    color: #777;
}

.welcome-box .stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.welcome-box .stat {
    text-align: center;
}

.subscription {
    margin-top: 20px;
}

.subscription-bar {
    background: #ddd;
    height: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

.subscription-progress {
    background: #5a2fc2;
    height: 10px;
    border-radius: 5px;
}

.recent-activity {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    width: 30%;
    box-sizing: border-box;
}

.recent-activity h2 {
    color: #333;
    margin-bottom: 20px;
}

.recent-activity .activity {
    margin-top: 10px;
    color: #555;
}

.recent-activity .activity p {
    margin: 5px 0;
}

/* Settings Page Styles */
.settings-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.settings-menu {
    display: flex;
    margin-bottom: 20px;
}

.settings-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.settings-menu li {
    padding: 10px 20px;
    background: #f5f5f5;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.settings-menu li.active,
.settings-menu li:hover {
    background: #007bff;
    color: #fff;
}

.settings-content {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Space between the two columns */
}



.card {
    background-color: #1a1a2e; /* Dark background for a futuristic look */
    color: #eaeaea; /* Light text for contrast */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    flex: 1;
    min-width: 300px;
}

.card form .form-group {
    margin-bottom: 20px;
}

.card form label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #ffffff; /* Ensure label text is readable on dark background */
}

.card form input,
.card form textarea,
.card form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #2d2d44; /* Slightly lighter background for inputs */
    color: #fff; /* White text inside inputs */
}

.card form input[readonly],
.card form textarea[readonly] {
    background-color: #444463; /* Darker background for readonly inputs */
}

.card form button.btn-primary {
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.card form button.btn-primary:hover {
    background: #0056b3;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Dropdown Styles */
select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"></path></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

select:focus {
    border-color: #007bff;
    outline: none;
}

/* Quick Addition Modal Styles */
#quickAddModal {
    display: none;
    position: absolute;
    top: 100%; /* Position it below the + icon */
    right: 0;
    transform: translateY(-10px); /* Slightly move it upwards */
    background-color: transparent; /* Make the background transparent */
    border-radius: 10px;
    padding: 10px;
    z-index: 1000;
}

#quickAddModal .modal-content {
    background-color: #1a1a2e; /* Dark blue background */
    border-radius: 10px;
    color: #eaeaea;
    padding: 10px;
    width: 180px; /* Adjusted width for smaller buttons */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

#quickAddModal .quick-add-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 icons per row */
    gap: 8px; /* Slightly smaller gap */
}

#quickAddModal .quick-add-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background-color: #16213e;
    border-radius: 5px;
    transition: background-color 0.3s;
    cursor: pointer;
    padding: 8px; /* Smaller padding */
}

#quickAddModal .quick-add-item:hover {
    background-color: #0f3460;
}

#quickAddModal .quick-add-item i {
    font-size: 18px; /* Smaller icon size */
    color: #e94560;
}

#quickAddModal .quick-add-item p {
    margin: 0;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px; /* Smaller font size */
}

/* Ensure the dropdown stays open when hovering */
.header-right:hover #quickAddModal,
#quickAddModal:hover {
    display: block;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    background-color: #4caf50; /* Green for success */
    color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.5s forwards, fadeOut 0.5s 2.5s forwards;
}

.notification.error {
    background-color: #f44336; /* Red for error */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
