:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --vk-color: #4c75a3;
    --telegram-color: #0088cc;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    color: var(--vk-color) !important;
}

.main-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
    padding: 30px;
    min-height: calc(100vh - 120px);
    position: relative;
    z-index: 10;
}

.btn-vk {
    background-color: var(--vk-color);
    border-color: var(--vk-color);
    color: white;
}

.btn-vk:hover {
    background-color: #3d5a8a;
    border-color: #3d5a8a;
    color: white;
}

.btn-telegram {
    background-color: var(--telegram-color);
    border-color: var(--telegram-color);
    color: white;
}

.btn-telegram:hover {
    background-color: #006699;
    border-color: #006699;
    color: white;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

/* Dropdown menu fixes */
.navbar {
    z-index: 1030;
}

.dropdown-menu {
    z-index: 1050 !important;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

/* Ensure modal inputs are interactive */
.modal input,
.modal textarea,
.modal select {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 9999 !important;
    background: white !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Remove any potential overlays */
.modal .form-group {
    position: relative !important;
    z-index: 9998 !important;
    pointer-events: auto !important;
}

.modal .form-control {
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

/* Force modal body to be interactive */
.modal-body {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 9997 !important;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    color: #212529;
    text-decoration: none;
    display: block;
    clear: both;
    font-weight: 400;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #16181b;
}

.dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid #e9ecef;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-online {
    background-color: var(--success-color);
    color: white;
}

.status-offline {
    background-color: var(--secondary-color);
    color: white;
}

.status-error {
    background-color: var(--danger-color);
    color: white;
}

/* Modal positioning fixes */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    z-index: 1055;
    max-width: 810px;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.modal-backdrop.show {
    opacity: 0.5 !important;
}
