/* Levor Remote - Custom Styles */

:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --sidebar-width: 250px;
    --sidebar-bg: #212529;
}

/* Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar */
#sidebar-wrapper {
    transition: margin 0.25s ease-out;
}

#sidebar-wrapper .sidebar-heading {
    font-size: 1.1rem;
}

#sidebar-wrapper .list-group-item {
    transition: all 0.2s ease;
}

#sidebar-wrapper .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    padding-right: 25px;
}

#sidebar-wrapper .list-group-item.active {
    background-color: var(--primary-color) !important;
}

/* Page wrapper */
#page-content-wrapper {
    min-width: 0;
    width: 100%;
}

/* Cards */
.card {
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* Stats cards */
.card.bg-primary,
.card.bg-success,
.card.bg-info,
.card.bg-warning,
.card.bg-secondary {
    border: none;
}

/* Tables */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
}

/* Forms */
.form-control {
    border-radius: 8px;
    padding: 0.6rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.input-group-text {
    border-radius: 8px 0 0 8px;
    background-color: #f8f9fa;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
}

/* Device cards */
.device-card {
    transition: all 0.3s ease;
}

.device-card.online {
    border-color: var(--success-color);
}

.device-card.offline {
    border-color: var(--secondary-color);
}

.device-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Status indicators */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.online {
    background-color: var(--success-color);
    animation: pulse 2s infinite;
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(25, 135, 84, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}

/* Pricing cards */
.pricing-card {
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: scale(1.02);
}

.pricing-card.recommended {
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(13, 110, 253, 0.2);
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsive */
@media (max-width: 991.98px) {
    #sidebar-wrapper {
        margin-right: -250px;
    }

    #sidebar-wrapper.toggled {
        margin-right: 0;
    }
}

/* Print styles */
@media print {
    #sidebar-wrapper,
    .navbar,
    .btn,
    footer {
        display: none !important;
    }

    #page-content-wrapper {
        margin: 0;
        padding: 0;
    }
}

/* RTL specific */
[dir="rtl"] .input-group-text {
    border-radius: 0 8px 8px 0;
}

[dir="rtl"] .input-group .form-control {
    border-radius: 8px 0 0 8px;
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
