* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background-color: #6083bc;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 500;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    width: 250px;
    height: calc(100vh - 100px);
    background-color: white;
    padding: 20px 0;
    border-right: 1px solid #e1e5eb;
}

.menu {
    list-style: none;
}

.menu li {
    margin-bottom: 5px;
}

.menu a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.2s;
}

.menu a.active {
    background-color: #6083bc;
    color: white;
}

.menu-icon {
    margin-right: 10px;
    font-size: 18px;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    margin-top: 60px;
    padding: 30px;
    flex: 1;
    min-height: calc(100vh - 160px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e1e5eb;
}

.card-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #6083bc;
    font-weight: 500;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.btn {
    background-color: #6083bc;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.btn-block {
    width: 100%;
}

/* Footer */
.footer {
    background-color: white;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e1e5eb;
    margin-top: auto;
    height: 40px;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th {
    background-color: #6083bc;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 500;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #e1e5eb;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f7fa;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    border: 1px solid #e1e5eb;
}

.auth-title {
    text-align: center;
    margin-bottom: 30px;
    color: #6083bc;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

/* Database cards */
.db-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.db-card {
    background: white;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    padding: 20px;
}

.db-name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #6083bc;
}

.db-info {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.db-actions {
    display: flex;
    gap: 10px;
}

/* Instructions */
.instructions {
    line-height: 1.6;
}

.instructions ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.instructions li {
    margin-bottom: 10px;
}

.code-block {
    background-color: #f5f7fa;
    padding: 15px;
    border-radius: 4px;
    font-family: monospace;
    margin: 15px 0;
    border-left: 3px solid #6083bc;
}

/* Дополнительные стили для управления БД */
.column-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.sql-result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.sql-result-table th {
    background-color: #6083bc;
    color: white;
    padding: 10px;
    text-align: left;
    font-weight: 500;
    border: 1px solid #4a6ca7;
}

.sql-result-table td {
    padding: 10px;
    border: 1px solid #e1e5eb;
}

.sql-result-table tr:nth-child(even) {
    background-color: #f9fafc;
}

/* Хлебные крошки */
.breadcrumbs {
    margin-bottom: 20px;
    color: #666;
}

.breadcrumbs a {
    color: #6083bc;
    text-decoration: none;
}

.breadcrumbs span {
    margin: 0 5px;
}

/* SQL редактор */
.sql-editor {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
}

.sql-keyword {
    color: #0066cc;
    font-weight: bold;
}

.sql-string {
    color: #009900;
}

.sql-comment {
    color: #999;
    font-style: italic;
}

/* Кнопки действий */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #6083bc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.action-btn:hover {
    opacity: 0.9;
}

.action-btn.delete {
    background: #dc3545;
}

.action-btn.export {
    background: #28a745;
}

.action-btn.info {
    background: #17a2b8;
}