/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Login page styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.login-box h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

/* Container and layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: #333;
    font-size: 1.8rem;
}

nav {
    display: flex;
    gap: 1rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #666;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #f0f0f0;
    color: #333;
}

.nav-link.active {
    background-color: #667eea;
    color: white;
}

/* Sections */
.section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h2 {
    color: #333;
    font-size: 1.5rem;
}

.section-actions {
    display: flex;
    gap: 0.5rem;
}

/* Form styles */
.form-group {
    margin-bottom: 1rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.form-row input {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e1e1;
}

/* Button styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #667eea;
    color: white;
}

.btn-primary:hover {
    background-color: #5a67d8;
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background-color: #cbd5e0;
}

.btn-danger {
    background-color: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background-color: #c53030;
}

.btn-outline {
    background-color: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background-color: #667eea;
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Device grid */
.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.device-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.device-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e1e1e1;
}

.device-header h3 {
    color: #333;
    font-size: 1.2rem;
}

.device-actions {
    display: flex;
    gap: 0.5rem;
}

.device-info p {
    margin-bottom: 0.5rem;
    color: #555;
}

.device-info strong {
    color: #333;
}

.device-keys {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Step 3: Device status and control styles */
.device-status {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #007bff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.device-controls {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

/* Enhanced Device Controls Section */
.device-controls-section {
    margin-top: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.control-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.control-group-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.control-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
}

/* Dropdown Group */
.dropdown-group {
    position: relative;
    display: flex;
}

.dropdown-group .btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.dropdown-toggle {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    min-width: auto !important;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    z-index: 1000;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.875rem;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.dropdown-item:first-child {
    border-radius: 4px 4px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 4px 4px;
}

/* Enhanced Button Styles */
.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.2;
    border-radius: 3px;
}

.status-badge.online {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-badge.offline {
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-badge.loading {
    background: #ffc107;
    color: black;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-badge.error {
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

/* Table styles */
.keys-table {
    overflow-x: auto;
}

.keys-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.keys-table th,
.keys-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
}

.keys-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.keys-table tbody tr:hover {
    background-color: #f8f9fa;
}

.key-value {
    font-family: monospace;
    background-color: #f1f3f4;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.875rem;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

.modal-content.large {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* Mobile optimization for large modals */
@media (max-width: 768px) {
    .modal-content.large {
        width: 98%;
        max-height: 95vh;
        margin: 1vh auto;
        border-radius: 8px;
    }
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: #333;
}

/* Keys management */
.keys-section {
    margin-bottom: 1rem;
}

.keys-section h4 {
    color: #333;
    margin-bottom: 1rem;
}

.add-key-form {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.keys-list {
    max-height: 300px;
    overflow-y: auto;
}

.key-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    background: white;
}

.key-info {
    flex: 1;
}

.key-info strong {
    color: #333;
}

.key-actions {
    display: flex;
    gap: 0.5rem;
}

/* Status badges */
.expired-badge {
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.active-badge {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.key-item .expired-badge {
    margin-left: 8px;
    font-size: 0.7em;
}

/* Server data status styles */
.server-data-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.server-data-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
}

.status-badge.success {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-badge.error {
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.server-data-info small {
    color: #666;
}

/* Error and success messages */
.error {
    background-color: #fed7d7;
    color: #c53030;
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid #feb2b2;
}

.success {
    background-color: #c6f6d5;
    color: #2f855a;
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid #9ae6b4;
}

/* Additional styles for logs modal */
.error-message, .no-logs-message {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    margin: 1rem 0;
}

.error-message {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid #dee2e6;
    color: #666;
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

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

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Private key styling */
.private-key {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85em;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #dee2e6;
    word-break: break-all;
}

/* Device logs styles */
.logs-section {
    display: flex;
    flex-direction: column;
    height: 70vh;
    max-height: 600px;
}

.logs-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

.logs-filter-group, .logs-limit-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logs-filter-group label, .logs-limit-group label {
    font-weight: 500;
    font-size: 0.9em;
}

.logs-filter-group select, .logs-limit-group select {
    padding: 0.25rem 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9em;
}

.logs-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-top: 1rem;
}

.logs-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.logs-search input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9em;
}

.logs-list {
    flex: 1;
    overflow-y: auto;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.5rem;
    min-height: 300px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85em;
    line-height: 1.4;
}

.log-entry {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 0.75rem;
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 0.25rem;
    transition: background-color 0.2s ease;
}

.log-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.log-entry:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.log-entry.error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.log-entry.warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.log-entry.info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

.log-entry.debug {
    background: #e2e3e5;
    border-left: 4px solid #6c757d;
}

.log-entry.hidden {
    display: none;
}

.log-time {
    color: #666;
    font-size: 0.8em;
    white-space: nowrap;
    font-weight: 500;
}

.log-type {
    font-weight: bold;
    text-align: center;
    font-size: 0.75em;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    color: white;
    white-space: nowrap;
    align-self: flex-start;
    height: fit-content;
    min-width: fit-content;
}

.log-type.ERROR {
    background-color: #dc3545;
}

.log-type.WARNING {
    background-color: #ffc107;
    color: #000;
}

.log-type.INFO {
    background-color: #17a2b8;
}

.log-type.DEBUG {
    background-color: #6c757d;
    color: #fff;
}

.log-message {
    word-break: break-word;
    white-space: pre-wrap;
    line-height: 1.3;
}

.logs-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 0.5rem 0;
    border-top: 1px solid #dee2e6;
}

.logs-info {
    font-size: 0.9em;
    color: #666;
}

.logs-actions {
    display: flex;
    gap: 0.5rem;
}

/* Mobile responsive styles for logs */
@media (max-width: 768px) {
    .logs-section {
        height: 80vh;
        max-height: none;
    }
    
    .logs-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .logs-filter-group, .logs-limit-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .logs-filter-group select, .logs-limit-group select {
        min-width: 120px;
    }
    
    .log-entry {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.75rem 0.5rem;
    }
    
    .log-time {
        font-size: 0.75em;
        order: 3;
        margin-top: 0.25rem;
    }
    
    .log-type {
        order: 1;
        justify-self: start;
        margin-bottom: 0.25rem;
        align-self: flex-start;
    }
    
    .log-message {
        order: 2;
        font-size: 0.9em;
    }
    
    .logs-pagination {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .logs-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logs-search {
        flex-direction: column;
        align-items: stretch;
    }
    
    .logs-search input {
        margin-bottom: 0.5rem;
    }
    
    .logs-controls {
        gap: 0.5rem;
    }
    
    .logs-filter-group, .logs-limit-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Connection status indicator */
.connection-status {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.connection-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

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

.connection-status.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Notification system */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    padding: 16px;
    border-left: 4px solid #007bff;
    animation: slideIn 0.3s ease-out;
    position: relative;
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification.warning {
    border-left-color: #ffc107;
}

.notification.info {
    border-left-color: #17a2b8;
}

.notification-title {
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
}

.notification-message {
    color: #666;
    font-size: 0.9em;
}

.notification-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: #333;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification.slide-out {
    animation: slideOut 0.3s ease-in;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .devices-grid {
        grid-template-columns: 1fr;
    }
    
    .device-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

/* Scheduled commands styles */
.scheduled-commands-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
}

.scheduled-command-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    background: #f9f9f9;
}

.scheduled-command-info {
    flex: 1;
}

.scheduled-command-info strong {
    color: #d63384;
}

.scheduled-command-actions {
    margin-left: 1rem;
}

.no-scheduled-commands {
    text-align: center;
    color: #666;
    padding: 2rem;
    font-style: italic;
}

/* Confirmation Modal Styling */
.confirmation-content {
    text-align: center;
}

.confirmation-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #333;
}

/* Enhanced Device Actions Section */
.device-actions-section {
    margin-top: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.management-controls,
.script-controls,
.system-controls {
    margin-bottom: 1.5rem;
}

.management-controls h4,
.script-controls h4,
.system-controls h4 {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.control-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.stop-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Enhanced Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

/* Button variants */
.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838, #1fa083);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #dc2f2f);
}

.btn-danger-light {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
}

.btn-danger-light:hover {
    background: linear-gradient(135deg, #ff5252, #ff7979);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #ffcd39);
    color: #212529;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800, #ffc720);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #868e96);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #757f87);
}

.btn-outline {
    background: white;
    border: 2px solid #dee2e6;
    color: #495057;
}

/* Management buttons with enhanced violet styling - higher specificity */
.btn-outline.btn-management {
    color: #8b5fbf !important;
    border: 2px solid #8b5fbf !important;
    box-shadow: 0 2px 4px rgba(139, 95, 191, 0.2);
    background: white !important;
}

.btn-outline.btn-management:hover {
    background-color: white !important;
    color: #8b5fbf !important;
    box-shadow: 0 4px 8px rgba(139, 95, 191, 0.3);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Remove old button styles to avoid conflicts */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

/* Responsive design for device actions */
@media (max-width: 768px) {
    .control-group,
    .stop-options {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
        width: 100%;
    }
}
