/* Umumiy stil */
:root {
    --primary-color: #007BFF;
    --secondary-color: #6c757d;
    --background-light: #f8f9fa;
    --background-dark: #343a40;
    --text-light: #ffffff;
    --text-dark: #333333;
    --sidebar-width: 250px;
}

body {
    height: 100%;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    color: var(--text-dark);
    transition: background-color 0.3s, color 0.3s;
}

/* 

h2 {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

/* Formaning umumiy uslubi */
.edit-form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px; /* Formaning maksimal kengligi */
    box-sizing: border-box;
}

.edit-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.edit-form input[type="text"],
.edit-form input[type="tel"],
.edit-form input[type="date"] {
    font-size: 16px;
}

.edit-form button {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.edit-form button:hover {
    background-color: #45a049;
}

.edit-form input:focus,
.edit-form button:focus {
    outline: none;
    border: 1px solid #4CAF50;
}

/* Responsivlik uchun */
@media (max-width: 600px) {
    .edit-form {
        padding: 20px;
    }
    h2 {
        font-size: 20px;
    }
}


.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav ul li {
    margin: 15px 0;
}

.sidebar-nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sidebar-nav ul li a:hover {
    background-color: #0056b3;
}

.sidebar-nav ul li a i {
    margin-right: 10px;
}

/* Main Content */
.main-content {
    /* height: 100%; */
    flex: 1;
    padding: 20px;
    background-color: var(--background-light);
    background-color: #0056b3;
    display: flex;
    flex-direction: column;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    margin-bottom: 20px;
}

.main-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.theme-switcher button {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.theme-switcher button:hover {
    color: var(--primary-color);
    
}

/* Content Area */
.content {
    height: 100%;
    background-color: var(--text-light);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.welcome-message {
    text-align: center;
    padding: 50px 0;
}

.welcome-message h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.welcome-message p {
    font-size: 18px;
    color: var(--secondary-color);
}

/* Dark Mode */
.dark-mode {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.dark-mode .main-content {
    background-color: var(--background-dark);
}

.dark-mode .content {
    background-color: #444;
    color: var(--text-light);
}

.dark-mode .theme-switcher button {
    color: var(--text-light);
}

/* Previous CSS remains the same */

/* Additional styles for form and chat */


.chat-container {
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.chat-header {
    background-color: #007bff;
    color: #fff;
    padding: 15px;
    text-align: center;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    border-bottom: 1px solid #ddd;
    max-height: 300px;
    color: #007bff;
}

.chat-input {
    display: flex;
    padding: 10px;
    background-color: #f9f9f9;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
}

.chat-input button {
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.chat-input button:hover {
    background-color: #0056b3;
}

.message {
    margin-bottom: 15px;
}

.message.user {
    text-align: right;
}

.message.bot {
    text-align: left;
}

.message p {
    display: inline-block;
    padding: 10px;
    border-radius: 10px;
    max-width: 70%;
}

.message.user p {
    background-color: #007bff;
    color: #fff;
}

.message.bot p {
    background-color: #f1f1f1;
    color: #007bff;
}

/* Chat xabarlariga animatsiya effekt qo'shish */
.chat-message {
    font-size: 18px;
    font-family: Arial, sans-serif;
    color: #333;
    margin-bottom: 10px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid black;  /* Chiziq (cursor) effekt */
    padding-right: 5px;
    display: inline-block;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.typing {
    animation: typing 2s steps(50) 1s forwards, blink 0.5s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}
