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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
}

.top-section {
    flex: 1;
    display: flex;
    min-height: 0;
}

.left-section {
    flex: 2;
    background: #ffffff;
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.dashboard-header {
    margin-bottom: 25px;
}

.dashboard-header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.search-box {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.search-box:focus {
    outline: none;
    border-color: #4CAF50;
}

.category {
    margin-bottom: 30px;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.app-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-item {
    padding: 14px 16px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-item:hover {
    background: #f1f8f4;
    border-color: #4CAF50;
    transform: translateX(4px);
}

.app-item.hidden {
    display: none;
}

.app-item.running {
    opacity: 0.6;
    pointer-events: none;
}

.app-info {
    flex: 1;
}

.app-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.app-description {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.app-script {
    display: none;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.run-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.run-btn:hover:not(:disabled) {
    background: #45a049;
    transform: scale(1.05);
}

.run-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.run-btn.running {
    background: #ff9800;
}

.right-section {
    flex: 1;
    background: #fafafa;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-left: 1px solid #e0e0e0;
    overflow-y: auto;
}

.terminal-section {
    height: 50vh;
    background: #1e1e1e;
    border-top: 1px solid #e0e0e0;
    padding: 10px;
}

#terminal {
    height: 100%;
    width: 100%;
}

.drop-area {
    flex: 1;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: white;
    transition: all 0.3s ease;
    min-height: 0;
    cursor: pointer;
}

.drop-area:hover {
    border-color: #4CAF50;
    background: #f9fff9;
}

.drop-area.dragover {
    border-color: #4CAF50;
    background: #f1f8f4;
}

.area-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.refresh-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    transition: background 0.2s;
}

.refresh-btn:hover {
    background: #45a049;
}

.drop-prompt {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 20px;
    border: 1px dashed #ddd;
    border-radius: 6px;
    background: #fafafa;
    margin-bottom: 15px;
}

.drop-area.has-files .drop-prompt {
    padding: 10px;
    font-size: 12px;
}

.file-list {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.file-remove {
    background: #ff4444;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    margin-left: 10px;
}

.file-remove:hover {
    background: #cc0000;
}

.file-download {
    background: #2196F3;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    margin-left: 10px;
}

.file-download:hover {
    background: #0b7dda;
}

.icon {
    font-size: 36px;
    margin-bottom: 8px;
    display: none;
}

.drop-text {
    color: #666;
    font-size: 13px;
    display: none;
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    display: none;
}

.drop-zone-files {
    max-height: 150px;
    overflow-y: auto;
    display: none;
}

h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    margin: 0;
}

.welcome-text {
    color: #666;
    font-size: 16px;
    text-align: center;
    max-width: 500px;
    display: none;
}

.navbar {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333333;
}

.navbar .nav {
  float: left;
}

.navbar .nav a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.navbar .nav a:hover:not(.active) {
  background-color: #111111;
}

.navbar .nav a.active {
  background-color: #04AA6D;
}

.navbar .navright {
  float:right;
}
