:root {
  --dashboard-bg: #f5f5f5;
  --dashboard-card-bg: #ffffff;
  --dashboard-text: #333333;
  --dashboard-border: #dddddd;
  --dashboard-shadow: rgba(0, 0, 0, 0.1);
  --dashboard-header-bg: #2196F3;
  --dashboard-header-text: #ffffff;
}

[data-theme="dark"] {
  --dashboard-bg: #1a1a1a;
  --dashboard-card-bg: #2d2d2d;
  --dashboard-text: #ffffff;
  --dashboard-border: #696969;
  --dashboard-shadow: rgba(0, 0, 0, 0.3);
  --dashboard-header-bg: #0d47a1;
  --dashboard-header-text: #ffffff;
}

/* Apply CSS Variables */
body {
  font-family: Arial, sans-serif;
  padding: 20px;
  background: var(--dashboard-bg);
  color: var(--dashboard-text);
  transition: all 0.3s ease;
}

.dashboard {
  max-width: 1200px;
  margin: 0 auto;
}

.control-panel {
  background: var(--dashboard-card-bg);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px var(--dashboard-shadow);
  margin-bottom: 20px;
  border: 1px solid var(--dashboard-border);
}


.button-group {
            margin: 10px 0;
        }
        .button-group button {
            margin: 5px;
        }
        .status {
            padding: 10px;
            margin: 10px 0;
            border-radius: 5px;
            font-weight: bold;
        }
        .status.active {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        .status.paused {
            background: #fff3cd;
            color: #856404;
            border: 1px solid #ffeaa7;
        }
        .status.destroyed {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        .config-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
            margin: 20px 0;
        }
        .config-item {
            padding: 10px;
            background: var(--dashboard-card-bg);
            border-radius: 5px;
            border: 1px solid var(--dashboard-border);
        }


/* CSS Variables untuk Theme */


.w3-container.w3-blue {
  background-color: var(--dashboard-header-bg) !important;
  color: var(--dashboard-header-text) !important;
}

.test-data {
  background: var(--dashboard-border);
  padding: 15px;
  border-radius: 5px;
  margin: 10px 0;
  font-family: monospace;
  font-size: 12px;
  max-height: 200px;
  overflow-y: auto;
  color: var(--dashboard-text);
}

/* Style untuk form elements di dark mode */
[data-theme="dark"] .w3-input {
  background-color: #3d3d3d;
  color: #ffffff;
  border-color: #555555;
}

[data-theme="dark"] .w3-select {
  background-color: #3d3d3d;
  color: #ffffff;
  border-color: #555555;
}

[data-theme="dark"] .w3-border {
  border-color: #555555 !important;
}

[data-theme="dark"] .w3-checkbox .w3-checkmark {
  background-color: #3d3d3d;
  border-color: #555555;
}

[data-theme="dark"] .w3-checkbox input:checked + .w3-checkmark {
  background-color: #2196F3;
}

[data-theme="dark"] .w3-light-grey {
  background-color: #3d3d3d !important;
  color: #ffffff !important;
}

        /* Tab Styles */
        

        .tablink {
            border-radius: 0 !important;
        }

        .tablink:hover {
            background-color: #555 !important;
        }



        /* Style untuk color picker */
        input[type="color"] {
            height: 38px;
            padding: 2px;
            cursor: pointer;
            border-radius: 4px;
        }

        input[type="color"]::-webkit-color-swatch {
            border: none;
            border-radius: 3px;
        }

        input[type="color"]::-webkit-color-swatch-wrapper {
            padding: 0;
        }

        input[type="text"]#colorInput {
            font-family: monospace;
            font-size: 14px;
        }

        /* Color preview */
        #colorPreview {
            border: 1px solid #ccc;
            min-height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        /* Quick color buttons */
        .button-group .w3-tiny {
            padding: 2px 8px;
            margin: 2px;
            font-size: 11px;
            border: 1px solid transparent;
        }

        .button-group .w3-tiny:hover {
            border: 1px solid #000;
        }
        
        .container-with-overflow {
            max-height: 100px;
            overflow-y: auto;
            flex-direction: column;
            gap: 8px;
            padding: 10px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            /*background: #4c4e4f;*/
        }

        .container-with-overflow::-webkit-scrollbar {
            width: 6px;
        }

        .container-with-overflow::-webkit-scrollbar-track {
            background: #edf2f7;
            border-radius: 3px;
        }

        .container-with-overflow::-webkit-scrollbar-thumb {
            background: #cbd5e0;
            border-radius: 3px;
        }