* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
}

.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: #1e293b;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: #38bdf8;
    margin-bottom: 30px;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.menu a {
    color: #94a3b8;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu a:hover, .menu a.active {
    background-color: #334155;
    color: #fff;
}

.agent-status-box {
    background-color: #0f172a;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
}

header h1 {
    font-size: 1.8rem;
    color: #1e293b;
}

header p {
    color: #64748b;
    margin-top: 5px;
}

/* Targets Section */
.targets-section {
    margin-top: 25px;
}

.targets-section h3 {
    margin-bottom: 15px;
    color: #334155;
}

.target-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-left: 4px solid #38bdf8;
}

.card i {
    font-size: 1.5rem;
    color: #0284c7;
}

.card h4 {
    font-size: 0.95rem;
    color: #1e293b;
    word-break: break-all;
}

.badge {
    align-self: flex-start;
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
}

.badge.manual {
    background-color: #e0f2fe;
    color: #0369a1;
}

/* Control Panel */
.control-panel {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.action-box, .logs-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.action-box h3, .logs-box h3 {
    margin-bottom: 15px;
    color: #334155;
    font-size: 1.1rem;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}

.btn.success { background-color: #22c55e; }
.btn.success:hover { background-color: #16a34a; }

.btn.danger { background-color: #ef4444; }
.btn.danger:hover { background-color: #dc2626; }

.btn.primary { background-color: #0284c7; }
.btn.primary:hover { background-color: #0369a1; }

/* Terminal */
.terminal {
    background-color: #0f172a;
    color: #38bdf8;
    padding: 15px;
    border-radius: 6px;
    height: 180px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-info { color: #94a3b8; }
.log-success { color: #4ade80; }
.log-warning { color: #facc15; }