* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f5f5f5;
    color: #333;
    font-family: "Barlow Semi Condensed", sans-serif;
    line-height: 1.6;
}
.actions {
    display: flex;
    flex-direction: row-reverse;
    gap: 15px;
}
.actions .btn {
    width: auto;
}
.app-name {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.app-name i {
    color: #3498db;
    margin-right: 8px;
}
.btn {
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 8px;
    transition: all 0.3s;
}
.btn i {
    margin-right: 8px;
}
.btn.big{
    font-size: 16px;
    padding: 18px 10px;
}
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}
.btn-danger {
    background-color: #e74c3c;
    color: white;
}
.btn-danger:hover {
    background-color: #c0392b;
}
.btn-logout {
    background-color: #34495e;
    color: white;
    font-size: 14px;
    padding: 8px 20px;
}
.btn-logout:hover {
    background-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}
.btn-primary {
    background-color: #3498db;
    color: white;
    width: 100%;
}
.btn-primary:hover {
    background-color: #2980b9;
}
.btn-secondary {
    background-color: #95a5a6;
    color: white;
}
.btn-secondary:hover {
    background-color: #7f8c8d;
}
.content-area {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
}
.dashboard-container {
    display: flex;
    min-height: 100vh;
    padding-top: 60px;
}
.error-message {
    background-color: #fee;
    border-radius: 4px;
    color: #c33;
    display: none;
    font-size: 14px;
    margin-top: 15px;
    padding: 10px;
}

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

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

.form-group label i {
    color: #3498db;
    margin-right: 5px;
}

.form-group input {
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    padding: 12px;
    transition: border-color 0.3s;
    width: 100%;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
}

.login-container {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-form {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    padding: 40px;
    width: 100%;
}

.login-form h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.main-container {
    min-height: 100vh;
    padding-top: 0;
}

.message {
    border-radius: 4px;
    display: none;
    margin-top: 20px;
    padding: 15px;
}

.message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.message.info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}
.message-inline {
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    margin: 15px 0;
    min-height: 20px;
    opacity: 0;
    padding: 10px 15px;
    text-align: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
}
.message-inline.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    opacity: 1;
    visibility: visible;
}

.message-inline.info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    opacity: 1;
    visibility: visible;
}

.message-inline.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    opacity: 1;
    visibility: visible;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-buttons .btn {
    min-width: 120px;
}

.modal-cancel {
    background-color: #95a5a6;
}

.modal-cancel:hover {
    background-color: #7f8c8d;
}

.modal-confirm {
    background-color: #e74c3c;
}

.modal-confirm:hover {
    background-color: #c0392b;
}

.modal-content {
    animation: scaleIn 0.2s ease-out forwards;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    padding: 30px;
    text-align: center;
    transform: scale(0.9);
    width: 90%;
}

.modal-icon {
    margin-bottom: 20px;
}

.modal-icon i {
    color: #e74c3c;
    font-size: 48px;
    opacity: 0.9;
}

.modal-message {
    color: #555;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.modal-overlay {
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    background-color: rgba(0, 0, 0, 0.6);
    bottom: 0;
    display: none;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 2000;
}

.modal-overlay.hide {
    animation: fadeOut 0.2s ease-out forwards;
}

.modal-overlay.hide .modal-content {
    animation: scaleOut 0.2s ease-out forwards;
}

.modal-overlay.show {
    align-items: center;
    animation: fadeIn 0.2s ease-out;
    display: flex;
    justify-content: center;
}

.modal-title {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.module {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.module-content {
    font-size: 14px;
    padding: 20px;
}

.module-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
    position: relative;
}

.module-header h2 {
    color: #2c3e50;
    font-size: 16px;
    margin: 0;
}

.module-header h2 i {
    color: #3498db;
    margin-right: 8px;
}

.modules-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    margin: 0 auto;
    max-width: 1110px;
}

.server-alias {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.server-icon {
    margin-bottom: 15px;
}

.server-icon i {
    color: #3498db;
    opacity: 0.8;
}

.server-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.server-info h3 {
    color: #34495e;
    margin-bottom: 20px;
}

.server-info-sidebar {
    background-color: #2c3e50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    text-align: center;
}

.server-ip {
    color: #ecf0f1;
    font-size: 14px;
    font-style: italic;
    margin: 0;
    opacity: 0.8;
}

.server-ip i {
    font-size: 12px;
    margin-right: 5px;
}

.sidebar {
    background-color: #34495e;
    bottom: 0;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    color: white;
    left: 0;
    overflow-y: auto;
    padding: 0;
    position: fixed;
    top: 60px;
    width: 250px;
}

.sidebar-menu {
    padding: 20px 0;
}

.status {
    border-radius: 20px;
    font-weight: 600;
    padding: 5px 15px;
}

.status.active {
    background-color: #d4edda;
    color: #155724;
}

.status.checking {
    background-color: #fff3cd;
    color: #856404;
}

.status.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.status-container {
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: flex;
    padding: 15px;
}

.status-label {
    font-weight: 500;
    margin-right: 10px;
}

.top-bar {
    align-items: center;
    background-color: #2c3e50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
    display: flex;
    justify-content: space-between;
    left: 0;
    padding: 15px 30px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
}
.user-info {
    align-items: center;
    display: flex;
    gap: 15px;
}
#username-display {
    font-weight: 500;
    margin-right: 10px;
}
.username-label {
    font-size: 14px;
    opacity: 0.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .user-info {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sidebar {
        top: 120px;
        width: 200px;
    }
    
    .content-area {
        margin-left: 200px;
        padding-top: 80px;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .actions .btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .content-area {
        margin-left: 0;
        padding-top: 80px;
    }
}

@media (max-width: 480px) {
    .login-form {
        padding: 20px;
    }
    
    .module-header {
        padding: 15px;
    }
    
    .module-content {
        padding: 15px;
    }
}